控制台文件上传
拷文件夹 (包括文件夹本身)
scp -r /home/slk root@192.168.1.5:/home
对拷文件并重命名
scp /home/a.txt root@192.168.1.5:/home//b.text
操作防火墙
查看防火墙状态
systemctl status firewalld.service
启动
systemctl start firewalld.service
关闭
systemctl stop firewalld.service
开机禁用防火墙自启命令
systemctl disable firewalld.service
开机启动防火墙
systemctl enable firewalld.service
开机服务自启/关闭自启
显示所有服务运行状态
chkconfig --list
添加服务
chkconfig --add 服务名
加入开机自启
systemctl start 服务名
关闭开机自启
chkconfig 服务名 off
启动级别
chkconfig --level 2345 服务名 on
chkconfig --level 2345 服务名 off
移除服务
chkconfig --del 服务名