Ubuntu 16.04 新装服务器部署流程
1、设定时区1
2
rm -f /etc/localtime
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
2、配置apt-get源
1
2
3
rm -f /etc/apt/sources.list
wget -P /etc/apt/ http://mirrors.163.com/.help/sources.list.wily
mv /etc/apt/sources.list.wily /etc/apt/sources.list
3、修改主机名
1
vim /etc/hostname
4、安装软件包
1
apt-get install lrzsz ntpdate
5、开启root登录
编辑/etc/ssh/sshd_config,(首先配置好密码)
1
2
3
4
把
PermitRootLogin prohibit-password
改为
PermitRootLogin yes
1
service ssh restart
6、踢出终端tty用户
1
pkill -kill -t tty
7、删除普通用户
8、安装监控系统
1
apt-get install zabbix-agent
页:
[1]