RHEL6.4安装nginx
下载nginx-1.6.1.tar.gz, 解压进入目录:
$ yum install pcre-devel
$ ./configure --with-http_ssl_module --with-mail
$ make && make install
安装位置在:
/usr/local/nginx
配置文件在:
/usr/local/nginx/conf/nginx.conf
启动nginx:
$ /usr/local/nginx/sbin/nginx
测试配置文件:
$ /usr/local/nginx/sbin/nginx -t
配置文件更改之后重新载入:
$ /usr/local/nginx/sbin/nginx -s reload