目录
groupadd -g 80 www adduser -o --home /www --uid 80 --gid 80 -c "Web Application" www
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