RHEL7配置LAMP環境+ Zabbix安裝

首先更新YUM源,一鍵安裝包依賴yum。 RHEL7 未註冊不能使用yum,因此修改使用Centos7的yum    http://blog.csdn.net/yudar1024/article/details/42298477     要把$releasever改爲redhat版本號 也就是7    不要悶着頭拷貝粘貼php

http://mirrors.163.com/.help/html

LNMP 一鍵安裝包  http://lnmp.org/install.html   github上其餘的包都出問題  就這個沒問題(對我)mysql

安裝成功截圖:git

zabbix  我是照着這個裝得  http://www.osyunwei.com/archives/7984.htmlgithub

 

zabbix網頁安裝過程當中mysql的sock報錯

報錯:

mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) [include/db.inc.php:77]
Error connecting to database [Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)]

解決辦法:

給/tmp/mysql.sock設置個軟鏈接:
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock 

這樣zabbix就能夠找到mysql的sock了sql

 

 

http://www.bubuko.com/infodetail-836687.htmlsocket

相關文章
相關標籤/搜索