总结Linux小问题

1:php安装扩展错误:Cannot find config.m4. Make sure that you run /usr/local/bin/phpize in the top level sourc

如果在安装php扩展的时候出现如题的错误:只需到php的安装目录下如:cd /usr/local/php/php-7.0.4/ext/openssl 执行命令:  cp ./config0.m4 ./config.m4 即可解决

2:如果出现configure: error: Cannot find ldap.h 问题

yum install openldap openldap-devel -y

如果安装完后出现:configure: error: Cannot find ldap libraries in /usr/lib 问题

cp -frp /usr/lib64/libldap* /usr/lib/

然后再./configure ...即可

3:cacti安装时报错MySQL TimeZone database

解决办法:登录mysql,执行以下内容

mysql> GRANT SELECT ON mysql.time_zone_name TO cacti@localhost IDENTIFIED BY 'cactiwhsir';
mysql> flush privileges;

然后发现又报错

ERROR: Your MySQL TimeZone database is not populated. Please populate this database before proceeding.

解决办法:执行以下内容

/usr/local/mysql/bin/mysql_tzinfo_to_sql /usr/share/zoneinfo/ | mysql -uroot -p mysql

 

posted @ 2019-03-28 11:36  Old·Artist  阅读(77)  评论(0)    收藏  举报