第十一节课 SSH和Apache
创建网络会话
nmcli connection show //查看会话
nmcli connection add con-name company ifname ens160 autoconnect no type ethernet ip4 192.168.10.10/24 gw4 192.168.10.1 //创建会话
nmcli connection add con-name house type ethernet ifname ens160 //创建会话
nmcli connection show
nmcli connection up company //启动会话
绑定两块网卡
nmcli connection add type bond con-name bond0 ifname bond0 bond.options "mode=balance-rr" //创建bond
nmcli connection add type ethernet slave-type bond con-name bond0-port1 ifname ens160 master bond0 //把网卡1加入BOND0
nmcli connection add type ethernet slave-type bond con-name bond0-port2 ifname ens192 master bond0 //把网卡2加入BOND0
nmcli connection modify bond0 ipv4.addresses 192.168.10.10/24 nmcli connection modify bond0 ipv4.gateway 192.168.10.1 nmcli connection modify bond0 ipv4.dns 192.168.10.1 nmcli connection modify bond0 ipv4.method manual
//设置bond0IP,网关,DNS及启动方式(手动)
nmcli connection up bond0
//启动bond0
配置sshd服务
SELinux安全子系统
SELinux 域 //服务管理
SELinux 安全上下文 //文件管理