/usr/libexec/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13)

/usr/libexec/mysqld: Can’t find file: ‘./mysql/plugin.frm’ (errno: 13)
Centos6.5 直接复制mysql数据文件,对数据进行异地恢复,报如下错误: /usr/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13) 160604 21:51:08 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it. 160604 21:51:08  InnoDB: Initializing buffer pool, size = 8.0M 160604 21:51:08  InnoDB: Completed initialization of buffer pool 160604 21:51:08  InnoDB: Started; log...

saltstack快速安装

saltstack快速安装
1. 安装源 1.1 安装epel源 # cd /usr/local/src/ # wget http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm -ivh epel-release-6-8.noarch.rpm 1.2 安装rpmforge 这步很重要,在redhat 6和centos 6的epel源上没有python-jinja2,一开始安装变卡在这了. # wget http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm # rpm -Uvh rpmforge-release-0.5.3-1.e...

Starting MySQL.Manager of pid-file quit without updating fi

Starting MySQL.Manager of pid-file quit without updating fi
出现这个问题,主要是,因为本服务器原来已经安装过mysql 没有卸载干净,所以会报错. 第一,先删除rm -rf /var/lib/mysql,然后重新初始化 usr/local/mysql/bin/mysql_install_db --user=mysql 第二, 看是否已经运行数据库进程了,ps -a|grep mysql [root@c5 mysql-5.1.48]# service mysqld start Starting MySQL.Manager of pid-file quit without updating file. [失败] [root@c5 mysql-5.1.48]# ps -a|grep mysql 2618 ? 00:00:00 mysqld_safe 2668 ? 00:00:00 mysqld [...

WordPress程序根目录

WordPress程序根目录
WordPress程序根目录 1.index.php:wordpress核心索引文件,即博客输出文件。 2.license.txt:WordPress GPL许可证文件。 3.my-hacks.php:定义了博客输出之前处理的追加程序。默认安装中并没有这个文件,但如果存在,它就会被管理页面引用。 4.readme.html:WordPress安装导言。 5.wp-atom.php:输出Atom信息聚合内容。 ⒍wp-blog-header.php:根据博客参数定义博客页面显示内容。 7.wp-cron.php 8.wp-comments-post.php:接收评论,并把其添加到数据库。 9.wp-comm...

date_default_timezone_set()

date_default_timezone_set()
在写php程序中有时会出现这样的警告: PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for '8.0/no DST' instead in D:\PHPW...

make: *** [sapi/cli/php] 错误 1

make: *** [sapi/cli/php] 错误 1
ext/iconv/.libs/iconv.o: In function `php_iconv_stream_filter_ctor': /home/king/php-5.2.13/ext/iconv/iconv.c:2491: undefined reference to `libiconv_open' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 [root@test php-5.2.13]# vi Makefile 在安裝 PHP 到系统中时要是发生「undefined reference to libiconv_open'」之类的错误信息,那表示在「./configure 」沒抓好一些环境变数值。错误发生点在建立「-o sapi/cli/...

启用php-fpm状态详解

启用php-fpm状态详解
php-fpm和nginx一样内建了一个状态页,对于想了解php-fpm的状态以及监控php-fpm非常有帮助。为了后续的zabbix监控,我们需要先了解php-fpm状态页是怎么回事。 1. 启用php-fpm状态功能 # cat /usr/local/php-5.5.10/etc/php-fpm.conf | grep status_path pm.status_path = /status 默认情况下为/status,当然也可以改成其他的,例如/ttlsa_status等等。 2. nginx配置 在默认主机里面加上location或者你希望能访问到的主机里面。 server { listen *:80 default_server; server_name _; location ~ ^/(status|ping)$ {...

Apache下PHP Loaded Configuration File None 解决方法

Apache下PHP Loaded Configuration File None 解决方法
phpapachePHP Loaded Configuration File PHP Loaded Configuration File None phpinfo()输出 loaded configuration file none, 解决方法可在apache配置文件中增加 PHPIniDir “The path to your php.ini”, 比如:PHPIniDir "/usr/local/php/etc/php.ini" 重启apache。 确保PHPIniDir在loadModule php5_module之前...