<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/ DTD/wml_1.1.xml">

<wml>
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card title="在VPS上安装Cherokee+PHP+MySQL">
<p>
作者:<a href="index.php?action=showuser&amp;userid=1&amp;hash=">admin</a><br />时间:2010-08-10 17:40<br />分类:<a href="index.php?action=list&amp;cid=3&amp;hash=">电脑技术</a><br />内容:
在VPS上安装Cherokee+PHP+MySQL


系统是Ubuntu 9.04,用root登录,然后操作如下;



    
        
            
            1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

            

            
            apt-get remove apahce2 //因为VPS预安装了Apache,所以我先把Apache删了;
apt-get update //然后更新下系统;
apt-get install mysql-server-5.1 //安装MySQL,会提示设置root用户密码;
apt-get install php5-cgi php5-mysql php5-gd //安装PHP
apt-get install cpp gcc g++ make //编译Cherokee所必要的软件;
cd /tmp
wget http://www.cherokee-project.com/cherokee-latest-tarball -O -| tar zxvf - //下载Cherokee到tmp目录
mv cherokee-0.99.31 cherokee  //懒的总是打版本号,所以重命名下;
cd cherokee
./configure &ndash;localstatedir=/var &ndash;prefix=/usr &ndash;sysconfdir=/etc &ndash;with-wwwroot=/var/www //基本配置
make //编译;
make install //安装;
cp contrib/cherokee /etc/init.d/cherokee //复制启动脚本;
chmod 755 /etc/init.d/cherokee //更改权限;
/etc/init.d/cherokee start //然后启动Cherokee;
update-rc.d cherokee defaults
            

        
    




启动,停止,重启命令;



    
        
            
            1
2
3

            

            
            /etc/init.d/cherokee start
/etc/init.d/cherokee stop
/etc/init.d/cherokee restart
            

        
    




启动Cherokee的管理面板;



    
        
            
            1

            

            
            cherokee-admin -b
            

        
    




然后用显示的密码登录http://IP:9090


 


快速安装cherokee


apt-get install cherokee
</p><p>
<a href="index.php?action=login&amp;hash=">立即登陆发表评论</a><br />
</p>
<p><a href="index.php?action=list&amp;hash=">返回日志列表</a><br /><a href="index.php?action=index&amp;hash=">返回主页</a></p>
</card>
</wml>
