新linux服务器需要安装的模块

一、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账号登陆
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值