nginx的安装 安装依赖的基础库 # yum -y install gcc gcc-c++ automake pcre pcre-devel zlib zlib-devel open openssl-devel 指定安装目录并生成Makefile文件 # ./configure --prefix=/usr/local/soft/nginx 编译和安装 # make & make install 启动nginx # nginx 关闭nginx # nginx -s stop 重新加载配置 # nginx -s reload 测试配置文件是否有错误 # nginx -t