Home | Mirror | Search

第 5 章 Nginx

目录

1. CentOS 5.x
2. CentOS 6.x
3. php-fpm status

groupadd -g 80 www
adduser -o --home /www --uid 80 --gid 80 -c "Web Application" www
	

1. CentOS 5.x

		
cat > /etc/yum.repos.d/nginx.repo <<EOF
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/5/x86_64/
gpgcheck=0
enabled=1
EOF


yum search nginx

yum install -y nginx
chkconfig nginx on
service nginx start
		
		

comments powered by Disqus