Cherokee 卻號稱是當前最快的 Web 服務器,下面講解下在Ubuntu 9.04下面安裝Cherokee簡易教程。
訪問 https://launchpad.net/~cherokee-webserver/+archive/ppa 找到自己的源
修改 vi /etc/apt/sources.list
我的是
複製內容到剪貼簿
deb http://ppa.launchpad.net/cherokee-webserver/ppa/Ubuntu jaunty main
deb-src http://ppa.launchpad.net/cherokee-webserver/ppa/Ubuntu jaunty main
首先匯入key
#apt-key adv --keyserver keyserver.Ubuntu.com --recv-keys EBA7BD49
#apt-get update
#apt-get install mysql-server-5.0 mysql-client
這裡需要設定MySQL root 使用者密碼.
#apt-get install php5-cgi
#apt-get install php5-mysql
#apt-get install cpp gcc g++ make
# apt-get install cherokee
到這裡你就安裝好了 不是很難吧,結果我花了好久才弄好這個方法.
使用管理介面
運行
#cherokee-admin -b
Login:
User: admin
One-time Password: xusWEshjBPoFC0Gl
Cherokee Web Server 0.10.1 (Nov 5 2008): Listening on port 9090, TLS disabled,
IPv6 disabled, using epoll, 1024 fds system limit, max. 505 connections,
single thread
接著開啟網頁.連接埠:http://你的網址或者ip:9090
這裡你的php還不能用~~~我就卡這裡卡好久,沒有教程和我說~~~
把介面換成中文
然後選虛擬機器主機設定–點擊你的要設定的主機
選擴張設定,然後點wizards
然後選languages,就看到了