本文共 2126 字,大约阅读时间需要 7 分钟。
MYSQL数据库连接数不够
/usr/local/etc/my.cnfmax_connections= 10000
wait_timeout = 5/usr/local/etc/rc.d/mysql-server restart
Failed to enable the ‘httpready’ Accept Filter
在 FreeBSD 下安装 apache22 会出现类似的 warming: No such file or directory: Failed to enable the ‘httpready’ Accept Filter解决方法是:
#kldload accf_http并在 /boot/loader.conf 中加入下面 2 行,以便下次启动自动装载模块 accf_data_load="YES" # Wait for data accept filter accf_http_load="YES" # Wait for full HTTP request accept filterFAMP
修改mysql数据库位置 /usr/local/mysql/bin/mysqld_safe260几行 默认是/usr/local/mysql/var
elif test -d $MY_BASEDIR_VERSION/var/mysql then DATADIR=/home/db/var # Or just give up and use our compiled-in default else DATADIR=/home/db/varmysql数据库位置默认是/usr/local/mysql/var
修改mysql数据库位置
/usr/local/mysql/bin/mysqld_safe 260几行 默认是/usr/local/mysql/var elif test -d $MY_BASEDIR_VERSION/var/mysql then DATADIR=/home/db/var # Or just give up and use our compiled-in default else DATADIR=/home/db/var数据库调用数据出现问号
对比4.0发现 cd ../mysql ./configure –prefix=/usr/local/mysql –with-charset=gbk –with-extra-charsets=all –without-debug –with-mysqld-ldflags=-all-static make make install clean 主要是FAMP5.1.0beta3安装MYSQL时候没加–with-charset=gbk 这个导致的数据库出现问号 cd ../mysql ./configure --prefix=/usr/local/mysql --with-charset=gbk --with-extra-charsets=all --without-debug --with-mysqld-ldflags=-all-static make make install clean
主要是编译的时候没加--with-charset=gbk 这个导致的
在 /usr/local/apache/conf/httpd.conf<Directory />
Options FollowSymLinks AllowOverride None 这里改成 AllowOverride Options FileInfo Order deny,allow Deny from all </Directory>这样就支持 .htaccess 了。
断电后无法正常进入系统!
断电后启动,提示 Mounting root from ufs:/dev/da0s1a Enter full pathname of shell or RETURN for /bin/sh: 回车后自动进入单用户模式 然后执行 #fsck -y #reboot 依旧如此 #mount -a 基于相同IP不同Port的虚拟主机 1)vi /etc/http/conf/httpd.conf 2)将Listen字段改为 Listen 80 Listen 8888 (以上设置表示使用80以及8888端口) 在linux下修改3个my.cnf的1个/etc/mysql/my.cnf文件 找到客户端配置[client] 在下面添加 default-character-set=utf8 默认字符集为utf8 在找到[mysqld] 添加 default-character-set=utf8 默认字符集为utf8 init_connect='SET NAMES utf8' (设定连接mysql数据库时使用utf8编码,以让mysql数据库为utf8运行) 修改好后,重新启动mysql 即可,查询一下show variables like 'character%';转载地址:http://xugjl.baihongyu.com/