阿里云急速搭建nginx

2013-12-27 22:59:10

为了玩玩node,入手了最低配置的阿里云 系统选的CentOS 6.3 64位 安全加固版 部署过程如下
# yum -y update
# yum install libaio-devel.x86_64
# yum install curl-devel
# yum -y install libpng-devel libjpeg-devel freetype-devel gmp-devel libxml2-devel
# rpm -ivh http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
# yum -y install nginx
# chkconfig nginx on


如果希望把域名也解析了的同学把
/etc/nginx/conf.d/default.conf

server_name改成自己的玉米就好
nginx helloworld
|