1. 安装gcc(centos 7之后一般已自带,可以在第6步失败后再安装)
yum install gcc gcc-c++
2. 安装pcre
yum install -y pcre pcre-devel
3. 安装zlib
yum install -y zlib zlib-devel
4. 安装openssl
yum install -y openssl openssl-devel
5. 下载并解压nginx(之后进入nginx目录)
wget
6. 编译nginx(加载常用模块如ssl)
./configure --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_gzip_static_module --with-http_ssl_module
专为中小型企业定制的网络办公软件,富有竞争力的十大特性: 1、独创 web服务器、数据库和应用程序全部自动傻瓜安装,建立企业信息中枢 只需3分钟。 2、客户机无需安装专用软件,使用浏览器即可实现全球办公。 3、集成Internet邮件管理组件,提供web方式的远程邮件服务。 4、集成语音会议组件,节省长途话费开支。 5、集成手机短信组件,重要信息可直接发送到员工手机。 6、集成网络硬
7. 安装nginx
make && make install
8. 启动
/usr/local/nginx/sbin/nginx
9. 停止
/usr/local/nginx/sbin/nginx -s stop(reload表示重启)
10. 浏览器访问nginx所在机器ip,验证nginx启动成功
http://yourhost/
注:nginx配置文件位置
/usr/local/nginx/conf/nginx.conf









