CentOS安装Nginx
来源:互联网 发布:查看ip端口是否打开 编辑:程序博客网 时间:2024/06/06 14:01
1.下载几个包:
nginx运行时需要用到opensll,zlib,pcre模块:
-下载nginx: wget http://nginx.org/download/nginx-1.10.3.tar.gz
-openssl : wget http://www.openssl.org/source/openssl-fips-2.0.9.tar.gz
-zlib : wget http://zlib.net/zlib-1.2.8.tar.gz
-pcre : wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-8.38.tar.gz
其它版本可通过官方获得。
如果未安装gcc编译环境,可通过yum install gcc-c++
完成安装。
2.在安装nginx前,需先将opensll,zlib,pcre进行安装。
如opensll tar zxvf openssl-fips-2.0.9.tar.gz
cd openssl-fips-2.0.9
./config && make && make install
zlib,pcre以及nginx相似,最后安装nginx即可。
3.启动nginx:/usr/local/nginx/sbin/nginx
如果出现报错:error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
如果是32位系统
ln -s /usr/local/lib/libpcre.so.1 /lib
如果是64位系统 ln -s /usr/local/lib/libpcre.so.1 /lib64
完成以上重启nginx即可。
0 0
- centos 安装nginx 配置nginx
- centos安装Nginx问题
- centOs下安装Nginx
- CentOS 5.6 安装Nginx
- centos下安装nginx
- CentOS下Nginx安装
- CentOS上 安装Nginx
- centos安装nginx
- Centos 安装nginx
- centos下安装nginx
- centos 安装 nginx
- CentOS下安装Nginx
- Centos 源码安装 nginx
- centos下安装nginx
- Centos上安装nginx
- CentOS下Nginx安装
- centos安装FastDFS+Nginx
- centos nginx 安装
- 网页分页查询实例
- 内核页表成长记
- js全局变量and局部变量的例子
- error LNK2019: 无法解析的外部符号
- SPOJ BIPCSMR16 想法
- CentOS安装Nginx
- linux学习笔记(五)
- Majority Element
- Linux下c开发 之 线程通信与pthread_cond_wait()的使用
- Oracle学习之:表连接三种方式
- cf#403 A B C
- Java和JavaScript的相互调用
- Call to undefined function pg_connect()
- 创建和查询可观察序列