Linux静默安装Nginx
来源:互联网 发布:java rsa加密算法 编辑:程序博客网 时间:2024/06/05 03:45
进入:/opt/
下载nginx: wget http://nginx.org/download/nginx-1.8.0.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如果没有安装c++编译环境,还得安装,通过yum install gcc-c++完成安装下一步,编译安装openssl :[root@localhost] tar zxvf openssl-fips-2.0.9.tar.gz[root@localhost] cd openssl-fips-2.0.9[root@localhost] ./config && make && make installpcre: [root@localhost] tar zxvf pcre-8.36.tar.gz[root@localhost] cd pcre-8.36[root@localhost] ./configure && make && make install zlib:[root@localhost]tar zxvf zlib-1.2.8.tar.gz[root@localhost] cd zlib-1.2.8[root@localhost] ./configure && make && make install 最后安装nginx[root@localhost]tar zxvf nginx-1.8.0.tar.gz[root@localhost] cd nginx-1.8.0[root@localhost] ./configure && make && make install
启动nginx
/usr/local/nginx/sbin/nginx出现错误提示[root@localhost lib]# error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory
原因 在RedHat 64位机器上nginx读取的pcre文件为/lib64/libpcre.so.1文件,默认安装pcre时libpcre.so文件安装在/usr/local/lib/目录下,所以输入/opt/nginx/sbin/nginx -V 找不到文件路径!!
1.首先确定安装了pcre.
2.切换路径: cd /usr/local/lib 执行 ln -s /usr/local/lib/libpcre.so.1 /lib64/
3.root权限下添加软链接 /usr/local/lib/libpcre.so.1 到 /lib64/ : ln -s /usr/local/lib/libpcre.so.1 /lib64/
0 0
- Linux静默安装Nginx
- Linux oracle10g 静默安装
- weblogic linux 静默安装
- Linux静默安装Oracle
- linux 下静默安装tuxedo
- linux下静默安装oracle11g
- linux 之静默安装oracle
- linux静默安装oracle数据库
- linux下静默安装oracle11g
- linux 之静默安装oracle
- Linux上静默安装Oracle
- apk,静默安装,linux命令
- weblogic linux下静默安装
- Linux下静默安装Oracle
- Oracle11gR2 for Linux 静默安装
- linux下静默安装oracle
- websphere7 linux 命令行安装(静默安装)
- Websphere7 linux 命令行安装(静默安装)
- Keychain 讲解
- 搜索练习3 /poj.org/problem 3984 迷宫问题/bfs 回溯找路经
- 确保字符串的每个单词首字母都大写,其余部分小写。
- Failed to read artifact descriptorfor xxx:jar
- 剑指offer-24.二叉树中和为某一值的路径
- Linux静默安装Nginx
- java.lang.Exception: No tests found matching
- mongodb分片
- 详解kmalloc、vmalloc
- python-关于对象
- js获取可视化区域的宽和高以及滑动条距离顶部的距离
- 在线压缩图片
- Android bitmap图片处理
- while和do while