CentOS7.5模板机配置
标签(空格分隔): linux学习知识整理
Mr.Wei's notes!
关闭selinux
[root@localhost ~]# sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config
[root@localhost ~]# sed -i 's/vmlinuz.*/& selinux=0/g' /boot/grub2/grub.cfg
关闭防火墙
[root@localhost ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@localhost ~]# systemctl disable iptables-services
Failed to execute operation: No such file or directory
优化SSH(禁止DNS反向解析)
[root@localhost ~]# echo "UseDNS no" >> /etc/ss