Linux安装Nginx
2017-05-15 17:46
218 查看
Linux安装Nginx
Linux安装Nginx,如果可以yum那其实挺好的,但是在没用yum功能的情况,我们只能自己安装Nginx并且安装其依赖包。注:
Nginx的主要依赖包:
zlib-1.2.11
openssl-1.0.2h
pcre-8
解压完依赖包之后,解压nginx程序包。通过configure配置进行安装前基本配置,参数如下:
./configure --prefix=/usr/local/nginx \
--with-http_v2_module \
--with-http_ssl_module \
--with-http_realip_module \
--with-http_gzip_static_module \
--with-http_stub_status_module \
--with-pcre=/home/weblogic/nginx/pcre-8.39 \
--with-zlib=/home/weblogic/nginx/zlib-1.2.11 \
--with-openssl=/home/weblogic/nginx/openssl-1.0.2h \
检查完毕之后, 使用make && make install进行安装检查和安装。
最后安装成功后,去/usr/local/nginx目录下进行nginx.conf的配置和启动
启动参数/sbin目录下:
./nginx 启动
./nginx -s stop 停止
./nginx -s reload 重启
相关文章推荐
- Linux下nginx的安装
- linux 下nginx安装与配置
- Linux下的Nginx安装(开机自启动)
- LNMP一键安装Linux系统下Nginx+MySQL+PHP这种网站服务器架构
- 【Linux】Nginx安装、部署--CentOS5.4
- LNMP-Linux下Nginx+PHP+MySQL+phpMyAdmin+eAcelerator一键安装包
- LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2011年2月8日更新)
- nginx-linux安装说明
- linux 下 Nginx 0.8.40的安装
- Linux 编译安装Nginx 配置 Python FastCGI Django (3) 配置nginx和django
- linux 下 nginx 安装 配置
- LNMP一键安装包 0.5 正式发布(Linux+Nginx+Mysql+PHP)
- Linux 编译安装Nginx 配置 Python FastCGI Django (1) 编译安装nginx
- LNMP-Linux下Nginx+MySQL+PHP+phpMyAdmin+eAcelerator一键安装包(2009年11月17日更新)
- Linux环境下nginx的安装
- Linux下nginx的安装问题
- linux 下安装nginx经常出现 make[2]: Leaving directory `/usr/local/ssl' 或make[2]: Leaving directory `/usr/local/openssl' 找不到的情况解决方法
- nginx 0.6.3 安装与配置(linux,nginx,php-cgi)
- Linux下怎么确定Nginx安装目录
- linux下怎么安装nginx