标签:emc start 查看 uuid perm otp sysconfig lld Opens
ctrl+alt+t
# 若提示找不到命令,则需安装 net-tools
sudo apt-get install net-tools
ifconfig -a
vi /etc/sysconfig/network-scripts/ifcfg-xxx
DEVICE=eth0
HWADDR=00:0C:29:F5:1D:6A
TYPE=Ethernet
UUID=8f49ebc2-5b1b-4135-863b-6acb0c84453f
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=static #设置为静态
IPADDR=192.168.179.13 #ip
NETMASK=255.255.255.0 #子网
GATEWAY=192.168.179.2#网关
DNS1=192.168.179.2 #dns
#source /etc/sysconfig/network-scripts/ifcfg-xxx
service network restart #重新启动
#查看ssh是否启动,有sshd说明已经启动
sudo ps -e |grep ssh
# 安装 openssh 服务
sudo apt-get install openssh-server
# 启动 ssh 服务
sudo service ssh start
sudo /etc/init.d/ssh start
# 若 firewalld 未安装,则先进行安装
sudo apt install firewalld
# 允许 tcp 22端口
sudo firewall-cmd --permanent --add-port=22/tcp
# 可选:允许ssh服务
sudo firewall-cmd --permanent --add-service=ssh
# reload 防火墙,应用规则
sudo systemctl reload firewalld
free
标签:emc start 查看 uuid perm otp sysconfig lld Opens
原文地址:https://www.cnblogs.com/shinesea/p/13891243.html