开机,内存使用36M,好强大...
0、更改密码
[shell]
#root登陆后,先更改密码,输入passwd后,连续两次新密码即可
passwd
[/shell]
1、安装vim
[shell]
#默认只有vi,没有vim...囧
yum install vim-enhanced
[/shell]
2、修改PS1
[shell]
vi /root/.bash_profile
# .bash_profile
# Get the aliase[......]
开机,内存使用36M,好强大...
0、更改密码
[shell]
#root登陆后,先更改密码,输入passwd后,连续两次新密码即可
passwd
[/shell]
1、安装vim
[shell]
#默认只有vi,没有vim...囧
yum install vim-enhanced
[/shell]
2、修改PS1
[shell]
vi /root/.bash_profile
# .bash_profile
# Get the aliase[......]
APC是一个很好的PHP加速器,比起Xcache来说,速度略逊,但是省内存!
[shell]
#下载、编译
wget http://pecl.php.net/get/APC-3.1.4.tgz
tar -xzvf APC-3.1.4.tgz
cd APC-3.1.4
./configure --enable-apc --enable-apc-mmap --with-php-config=/usr/local/php/bin/php-config
#安装、设置
[/shel[......]
有可能是max-fileno的限制,不够用了,所以反复的出现5xx错误。。
php-fpm.conf
修改
51200
还有一个限制
root执行ulimit -SHn 51200
可以把它放在/etc/rc.local
执行完毕后检查一下当前fileno的限制
ulimit –n
确定为51200后,killall php-fpm 再启动php-fpm[......]
1、下载最新的virto for win驱动
有两个:
virtio-win-xxxx.vfd
virtio-win-xxx.iso
2012.2.23更新:
我猛然发现vfd已经不提供下载了,于是把最新版本共享出来:
http://hotfile.com/dl/147534533/7d6548d/virtio-win-1.1.16.vfd.html
前者是windows安装时候加驱动用的(软盘镜像),后者是装好了再加驱动(光盘镜像)
本文主要叙述安装时候加载[......]
1、下载php
wget http://cn2.php.net/get/php-5.2.14.tar.gz/from/am.php.net/mirror
tar -xzvf php-5.2.14.tar.gz
2、安装PHP
#先安装依赖的库文件
yum install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel[......]