Ubuntu基础设置
ssh
1.检查是否启动
1 | sudo ps -e |grep ssh |
2.修改配置允许root登陆:
1 | vim /etc/ssh/sshd_confg |
找到:修改PermitRootLogin 为 PermitRootLogin yes
1 | service ssh stop |
固定IP
1 | vim /etc/network/interfaces |
添加如下信息
1 | # The primary network interface |
DNS
1 | vim /etc/resolv.conf && vim /etc/resolvconf/resolv.conf.d/base |
写入相同的内容:
1 | nameserver 192.168.8.1 |
设置主机名
1 | echo nginx.master >/etc/hostname |
设置时区
1 | tzselect |