centos6下使用yum安裝nginx

在ubuntu下安装nginx
apt-get install nginx
在centos下安装nginx
1.处理下源
rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
2.查看yum的nginx信息   yum info nginx
3.安装nignx   yum install nginx
4.启动nginx   service nginx start

你可能感兴趣的:(centos6下使用yum安裝nginx)