发表于: 2018-04-13 20:00:31

3 786


今天完成的事情:

上半天:

继续解决任务四遗留问题,感觉还是没有头绪。解决的乱七八糟。心里没有低!!

下半天:

就试着安装任务七的zabbix,

也不简单。。。

得先安装环境。。。

LAMP或者LNMP运行环境

 
遇到的问题:

configure: error: xpm.h not found.

解决方法:yum install libXpm-devel

configure: error: mcrypt.h not found. Please reinstall libmcrypt.

解决方法:wget ftp://mcrypt.hellug.gr/pub/crypto/mcrypt/attic/libmcrypt/libmcrypt-2.5.7.tar.gz
tar -zxvf libmcrypt-2.5.7.tar.gz
cd libmcrypt-2.5.7
./configure  –prefix=/usr/local
make
make install

或者

cd /usr/local/src
wget http://softlayer.dl.sourceforge.net/sourceforge/mcrypt/libmcrypt-2.5.8.tar.gz
tar -zxvf libmcrypt-2.5.8.tar.gz
cd /usr/local/src/libmcrypt-2.5.8
./configure --prefix=/usr/local
make
make install

configure: error: invalid variable name: –prefix

解决方法:

正确格式:把prefix前面的"-"改成“--” 

例如:./configure --with-http_stub_status_module "--prefix=/usr/webservice/nginx" --with-pcre=/home/tang/ 下载/pcre-8.20 

configure: error: Please reinstall the mysql distribution

解决方法: 这个得看你自己的有关mysql的一些软件的目录了

我是一个一个找的,一个一个改的目录


--with-mysql=/usr/local/mysql  
--with-mysqli=/usr/local/mysql/bin/ mysql_config
查查这个地方,似乎有个空格
--with-mysql-sock=/tmp/mysql.sock

这三个的目录修改


安装zabbix

#使配置立即生效

[root@LiLong ~]# groupadd zabbix

[root@LiLong ~]# useradd zabbix -g zabbix -s /bin/false

[root@LiLong ~]# ln -s /usr/local/lib/libiconv.so.2 /usr/lib/libiconv.so.2

[root@LiLong ~]# /sbin/ldconfig

/sbin/ldconfig: /lib64/libstdc++.so.6.0.19-gdb.py is not an ELF file - it has the wrong magic bytes at the start.

[root@LiLong ~]# 

问题有点解决不了




收获:

PHP 5 MySQLi 函数

http://www.runoob.com/php/php-ref-mysqli.html

zabbix

http://blog.51cto.com/dengxi/1743146

https://www.cnblogs.com/clsn/p/7885990.html#auto_id_25(感觉这个可详细了,只是看不懂)

http://www.osyunwei.com/archives/7984.html

https://www.centos.bz/2017/11/centos-7%E5%AE%89%E8%A3%85zabbix-3-4/

http://www.cnblogs.com/enjoycode/p/zabbix_3_installation_on_centos_7.html

搭建LAMP平台环境

https://www.linuxidc.com/Linux/2015-06/118818.htm

https://www.cnblogs.com/me80/p/7218883.html

https://blog.csdn.net/ljl890705/article/details/78273910


CentOS 7.0编译安装Nginx1.6.0+MySQL5.6.19+PHP5.5.14

http://www.osyunwei.com/archives/7891.html


编译安装时常见错误解决办法

http://www.bkjia.com/PHPjc/1008013.html

http://www.cnblogs.com/sweetXiaoma/p/5855732.html


卸载PHP

https://www.cnblogs.com/sunshine-H/p/8117105.html

https://blog.csdn.net/woshizhangliang999/article/details/56667934

lnmp之安装PHP模块/扩展(不需要重装PHP)

https://www.vpser.net/manage/lnmp-php-install-ext.html

lnmp一键安装包安装及使用过程中的问题及解决

http://www.vpser.net/build/lnmp-faq.html





明天计划的事情

如果任务四过了,就开始任务五。但是,我感觉过不了,应该还没达到验收标准。过不了就继续解决问题,随便做做任务七........


返回列表 返回列表
评论

    分享到