新买阿里云服务器需手动配置80,端口才可以访问nginx
CentOS系统 安装nginx
- 安装 Nginx
yum install nginx
- 启动 Nginx 服务
systemctl start nginx
- 修改默认网页
cd /usr/share/nginx/
echo "666" >index.html
cat index.html
访问ngin最后一张图所示



入 添加80端口

访问ip地址

新买阿里云服务器需手动配置80,端口才可以访问nginx
CentOS系统 安装nginx
yum install nginx
systemctl start nginx
cd /usr/share/nginx/
echo "666" >index.html
cat index.html
访问ngin最后一张图所示
入 添加80端口
访问ip地址