今天裝了臺ubuntu server ,日常基本用rhel /centos ,ubuntu 的設置不太瞭解,遇到幾個問題總結如下:
1.系統安裝完,切換到root 配置網絡
sudo -s
vim /etc/network/interfaces
2.修改主機名
vim /etc/hostname
3.防火牆設置 systemctl {start|stop|restart|status} ufw.service 或者service ufw {start|stop|restart|status}
4.apparmor (類似於selinux),可以按傳統服務的方式開啓,停止,重啓等,如下圖:
5.ssh problem
ubuntu not install openssh-server ,so , it can't connect by xshell
solution:
sudo apt-get openssh-server
service ssh start
ps -ef |grep ssh