
linux
lijie12233
这个作者很懒,什么都没留下…
展开
-
centos6永久修改主机名
vi /etc/sysconfig/network HOSTNAME=localhost.localdomain #修改localhost.localdomain为master vi /etc/hosts 127.0.0.1 localhost.localdomain #修改localhost.localdomain为master reboot原创 2017-10-11 22:16:22 · 14627 阅读 · 0 评论 -
非root用户ssh不能登录本机
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys chmod 710 authorized_keys原创 2017-10-12 14:34:47 · 1884 阅读 · 1 评论 -
centos 免密码登录
ssh-keygen -t rsa ssh-copy-id master原创 2017-10-12 20:02:07 · 425 阅读 · 0 评论 -
centOS 关闭防火墙
service iptables stop chkconfig iptables off service iptables status原创 2017-10-12 20:55:19 · 274 阅读 · 0 评论