CENTOS7 安装LNMP环境

------仅作为自己学习留存------

CENTOS 7.6/NGINX1.14.0/MYSQL8/PHP7.2

安装编译器

[root@VM-0-16-centos home]# yum install gcc gcc-c++

软件下载路径---自己服务器

/home/lnmp

zlib源码安装

[root@VM-0-16-centos lnmp]# wget http://prdownloads.sourceforge.net/libpng/zlib-1.2.11.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf zlib-1.2.11.tar.gz
[root@VM-0-16-centos lnmp]# cd zlib-1.2.11
[root@VM-0-16-centos zlib-1.2.11]# ./configure
[root@VM-0-16-centos zlib-1.2.11]# make && make install

pcre安装

[root@VM-0-16-centos lnmp]# wget  https://jaist.dl.sourceforge.net/project/pcre/pcre/8.42/pcre-8.42.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf pcre-8.42.tar.gz 
[root@VM-0-16-centos lnmp]# cd pcre-8.42/
[root@VM-0-16-centos pcre-8.42]# ./configure 
[root@VM-0-16-centos pcre-8.42]# make && make install
[root@VM-0-16-centos pcre-8.42]# 

[root@VM-0-16-centos lnmp]# pcre-config --version
8.42

OpenSSL安装

[root@VM-0-16-centos lnmp]#yum groupinstall "Development Tools" 

[root@VM-0-16-centos lnmp]# wget https://www.openssl.org/source/openssl-1.1.1k.tar.gz
[root@VM-0-16-centos lnmp]# tar zxvf openssl-1.1.1k.tar.gz 
[root@VM-0-16-centos lnmp]# cd openssl-1.1.1k/
[root@VM-0-16-centos openssl-1.1.1k]# ./config --prefix=/usr/local/openssl --openssldir=/usr/local/ssl
[root@VM-0-16-centos openssl-1.1.1k]# make -j 2
[root@VM-0-16-centos openssl-1.1.1k]# make install

导出库文件

[oot@VM-0-16-centos openssl-1.1.1k]# echo  /usr/local/openssl/lib >> /etc/ld.so.conf.d/openssl.conf
[oot@VM-0-16-centos openssl-1.1.1k]# ldconfig 
# "检测版本信息"
[oot@VM-0-16-centos ope
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值