阿里云centOS-6.3-64位通过YUM源安装nginx

第一步:在 /etc/yum.repos.d/ 目录下,建立名叫nginx.repo的软件源配置文件。
        文件 nginx.repo 的内容是:

[nginx]   
name=nginx repo   
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/   
gpgcheck=0   
enabled=1


第二步:使用命令 yum install nginx ,按照提示即可安装完毕;
第三步:使用命令 /etc/init.d/nginx start  启动nginx服务;
第四步:测试,在浏览器里输入服务器ip地址,即可出现 nginx 欢迎页面;eg: http://115.28.36.103/


重启nginx命令:
        service nginx restart;
        nginx -s reload;


参考:
       [url CentOS 6.3 - 安装 Nginx 1.2.7(yum源)] http://www.cnblogs.com/highend/archive/2013/03/06/centos6_3_install_nginx_1_2_7.html [/url]

http://blog.csdn.net/bugknightyyp/article/details/17121811

http://help.aliyun.com/manual?spm=0.0.0.0.3j8bHj&helpId=59




花下眠工作室: http://huaxiamian.cc

猜你喜欢

转载自huaxiamian.iteye.com/blog/1987587