Linux环境下Web环境搭建——Nginx
2017-02-27 16:54
330 查看
1、安装依赖
yum -y install make gcc gcc-c++ ncurses-devel ##编译环境
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel ##必需软件(y有些软件已经安装则不需安装)
yum install GeoIP gd libXpm libxslt ##安装依赖包
1、上传nginx安装包
2、解压tar -xzvf nginx-1.11.6.tar.gz
3. 配置编译条件
./configure --prefix=/usr/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module
4. 执行make make install 命令进行安装
5. 启动
cd /usr/nginx/sbin
./nginx #启动
./nginx -s reload #平滑重启
./nginx -t #测试
./nginx -s stop #停止
6. 相关文件优化配置 自行搜索
yum -y install make gcc gcc-c++ ncurses-devel ##编译环境
yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel ##必需软件(y有些软件已经安装则不需安装)
yum install GeoIP gd libXpm libxslt ##安装依赖包
1、上传nginx安装包
2、解压tar -xzvf nginx-1.11.6.tar.gz
3. 配置编译条件
./configure --prefix=/usr/nginx --with-pcre --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_realip_module
4. 执行make make install 命令进行安装
5. 启动
cd /usr/nginx/sbin
./nginx #启动
./nginx -s reload #平滑重启
./nginx -t #测试
./nginx -s stop #停止
6. 相关文件优化配置 自行搜索
相关文章推荐
- web环境搭建之Linux--nginx-php-mysql
- 搭建LNAMP(Linux+Apache+Nginx+MySQL+PHP)前后端Web(PHP)开发环境
- Linux下搭建基于Nginx+FastCGI+Flup+Webpy+Cheetah的Python Web环境
- 使用windos电脑模拟搭建集群(四)web环境 linux+nginx+jdk+tomcat
- 在Linux下搭建Web应用环境
- nginx+apache+mysql+php+memcached+squid搭建集群web环境
- linux下nginx+php+mysql环境搭建
- Linux上搭建Asp.net MVC3环境(CentOS + Nginx + Mono)
- 在Linux下搭建Web应用环境 [转]
- Linux下搭建Nginx环境的搭建
- nginx python spawn-fcgi Flup webpy搭建python的web环境
- Linux下JavaWeb环境搭建教程
- Nginx+Apache搭建前后端web生产环境
- linux搭建Nginx+uWSGI环境
- 在Linux下搭建Web应用环境(原创)
- nginx+apache+squid搭建集群web环境
- Linux下搭建nginx和php环境
- 搭建python的web环境 Centos5.4+Nginx-0.8.50+UWSGI-0.9.6.2+Django-1.2.3搭建高性能WEB服务器环境
- Web站点搭建过程(linux环境配置)
- 在Linux下搭建Web应用环境(原创) chenyun2000 [原作]