阿里云ECS中默认是安装了Nginx 1.6.0的。
- 登录ESC
$ ssh root@[ESC IP地址]
root@[ESC IP地址]'s password: // 输入密码
Welcome to aliyun Elastic Compute Service!
Last login: Mon Jul 31 21:09:10 2017 from 210.13.77.213
- apt-get安装Nginx
apt-get install nginx
- Nginx目录
Nginx安装完成后,cd
切入到/etc/nginx
目录下有Nginx的所有文件。