一、libevent相关的模块
[root@VM_0_14_centos ~]# cd /usr/local/src/
[root@VM_0_14_centos src]# wget https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz
[root@VM_0_14_centos src]# tar -xf libevent-2.1.8-stable.tar.gz
[root@VM_0_14_centos src]# cd /usr/local/src/libevent-2.1.8-stable
[root@VM_0_14_centos libevent-2.1.8-stable]# ./configure
[root@VM_0_14_centos libevent-2.1.8-stable]# make
[root@VM_0_14_centos libevent-2.1.8-stable]# make install
二、libiconv相关的模块
[root@VM_0_14_centos ~]# cd /usr/local/src/
[root@VM_0_14_centos src]# wget https://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.15.tar.gz
[root@VM_0_14_centos src]# tar -xf libiconv-1.15.tar.gz
[root@VM_0_14_centos libiconv-1.15]# cd libiconv-1.15
[root@VM_0_14_centos libiconv-1.15]# ./configure --prefix=/usr/local
[root@VM_0_14_centos libiconv-1.15]# make
[root@VM_0_14_centos libiconv-1.15]# make install
三、libmcrypt相关的模块
[root@VM_0_14_centos ~]# cd /usr/local/src/
[root@VM_0_14_centos src]# wget https://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
[root@VM_0_14_centos src]# tar -xf libmcrypt-2.5.8.tar.gz
[root@VM_0_14_centos src]# cd libmcrypt-2.5.8
[root@VM_0_14_centos libmcrypt-2.5.8]# ./configure
[root@VM_0_14_centos libmcrypt-2.5.8]# make
[root@VM_0_14_centos libmcrypt-2.5.8]# make install
查看已经安装的模块
三、将路径加载到动态链接库中
[root@VM_0_14_centos ~]# echo '/usr/local/lib' >> /etc/ld.so.conf
[root@VM_0_14_centos ~]# ldconfig
备注:
1、新服务器我们需要安装环境,但是安装环境需要一些依赖关系,但是如果源码编译环境,很多源码包需要依赖一些模块(例如:lnmp或者lamp环境),这时我们需要提前把模块提前安装好,方便我们在后面编译的时候不出错。
2、在初始化mysql5.7的时候,会报错说不能加载模块 libnuma.so.1,这时需要安装一个包 yum -y install numactl.x86_64
四、针对ssh配置
useDNS no #不使用DNS,可提高ssh连接速度
GSSAPIAuthentication no #关闭GSSAPI验证,可提高ssh连接速度
PermitRootLogin no #禁止root账号登陆