文章目录
一. 问题背景
在看java教程手把手教你Jenkins从环境配置到项目开发,跟着视频安装gitlab,但是在启动postfix报错了。
参考自:安装postfix过程中报错找不到libmysqlclient.so.18文件
二. 安装postfix并启动
-
下载libmysqlclient.so.18文件:
http://files.directadmin.com/services/es_7.0_64/libmysqlclient.so.18
-
把该文件上传到Linux的
/usr/lib/
-
最后执行如下:
# 卸载postfix
service postfix stop
yum -y remove postfix
# 安装postfix
yum install postfix
# 设置自启动并启动postfix
systemctl enable postfix
systemctl start postfix