linux 系统下nginx安装方法【亲测有效】

使用YUM在联网状态下使用:

第一步: yum install nginx

安装命令执行完等待安装完成即可
第二步: cd /etc/nginx

安装完成后nginx的目录
第三步: service nginx start

启动nginx
第四步: 打开浏览器访问该服务器ip或者Linux 控制台 curl 服务器ip
 

Welcome to nginx!
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

你可能感兴趣的:(linux,nginx,github)