使修改立即生效:
source /etc/profile
centos直接yum安装nginx
处理源:
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
查看yum的nginx信息:
yum info nginx
安装:
yum install nginx
启动nignx:
service nginx start
输入主机地址查看:
http://192.168.1.100/
看到,
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 生产环境搭建推荐教程,希望大家喜欢。










