Mysql On Centos5

操作系统安装的时候选择的是使用系统自带的,版本为5.0.22。
1、目录位置
mysql运行程序位置:/usr/bin
配置文件位置:/etc/my.cnf
字符集配置目录:/usr/share/mysql/
语言文件位置:/usr/share/mysql/english/
数据文件默认位置:/var/lib/mysql
2、添加本地开发用户
GRANT ALL PRIVILEGES ON *.* TO root@”%” IDENTIFIED BY ‘123321′ ;

Comments

Apche on CentOS5

CentOS 5 下的自带的Apache版本是2.2.3。
1、目录结构
程序默认目录:/usr/sbin/
配置文件默认目录:/etc/httpd/conf
网站根默认目录:/var/www/
php默认版本:5.16
2、重启httpd服务
/usr/local/etc/rc.d/httpd restart
3、性能参数调整
(1)、Timeout,default value is 120, 修改为60(访问量大的话可以缩短为30)
(2)、prefork.c
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
ServerLimit 1024
MaxClients 768
MaxRequestsPerChild 0
</IfModule>
(3)、在 php.ini 中进行设置提升 PHP 安全性。
   # vi /etc/php.ini
       找到:
       disable_functions =
       设置为:
       disable_functions = phpinfo,passthru,exec,system,popen,chroot,escapeshellcmd,escapeshellarg,shell_exec,proc_open,proc_get_status,ini_restore

Comments

CentOS 5下安装花生壳

Windows下的花生壳安装起来比较方便,而且也经常升级。Linux下的,目前花生壳提供的是1.01的版本,这个版本还是2005年的。不过用起来还是没有问题的。
安装的过程很简单,参考官方的指南:花生壳For Linux
因为我是在CentOS 5中安装的,所以,出现了如下的问题:

./phlinux:error while loading shared libraries:libstdc++.so.5:cannot open shareed object file:No such file or directory

目前,CentOS 5中已经是libstdc++.so.6的版本了。而花生壳的安装程序是要5的版本。可以从此处下载rpm的安装包,解压后,将文件copy到/usr/lib中,再运行就可以了。

关于配置文件,可以使用Oray的配置程序进行配置,也可以直接编辑/etc/phlinux.conf文件进行修改。密码和用户都是明文配置的。

9月补充:在CentOS 4.5下,也是报告缺少libstdc++5.0的文件,在本地保存一份,防止以后找不到。

Comments

It’s My Life © 2007     Powered by WordPress     22 queries. 0.454 seconds.