CentOS 7.6编译安装LNMP

一、前期准备
1.服务器以最小化方式安装CentOS 7.6
2.配置本地源及安装epel源
#cd /etc/yum.repos.d
#vi CentOS-Base.repo
增加enable=1
#yum install wget
#wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
#yum makecache
#yum install epel-release
#yum repolist
3.#yum install gcc gcc-c++ cmake
4.#yum install kernel kernel-devel,再重启服务器。 //升级内核
5.#yum update //系统升级。
注:#yum remove NetworkManager
#systemctl stop NetworkManager
#systemctl disable NetworkManager
6.编译安装cmake-3.10.2,//请参考https://blog.51cto.com/191226139/2066186
7.安装ntpd时间服务器
8.Yum remove packages…
httpd httpd-tools mysql mysql-libs php-mysql php-cli php-gd php-common php
特别执行#yum remove mysql-libs //将删除crontabs,后面再安装crontabs,记得开启crond服务
9.Yum installing dependent packages…
flex bison file libtool libtool-ltdl autoconf patch wget crontabs libjpeg-turbo libjpeg-turbo-devel libpng libpng-devel libpng10 libpng10-devel gd gd-devel

你可能感兴趣的:(LNMP,架构)