2016年1月6日 星期三

centos 7 command

Named services

/bin/systemctl stop  named.service
/bin/systemctl start named.service


systemctl start NetworkManager
systemctl stop NetworkManager


change network interface
nmtui

#disable root remote login 

vi /etc/ssh/sshd_config

Find this section in the file, containing the line with ¡§PermitRootLogin¡¨ in it.

#LoginGraceTime 2m
#PermitRootLogin no
#StrictModes yes
#MaxAuthTries 6

Make the line look like this to disable logging in through ssh as root.
PermitRootLogin no

Now you¡¦ll need to restart the sshd service:
/etc/init.d/sshd restart

systemctl disable firewalld



沒有留言:

張貼留言