Step2,MySQL,Linux (x86, glibc-2.2, static, gcc) Standard 4.1.8
從FTP上下載MySQL CODE: [Copy to clipboard] --------------------------------------------------------------------------------
ftp 192.168.100.2 get mysql-standard-4.1.8-pc-linux-i686.tar.gz 解壓縮,說明一下,tar -xvzf可以直接解壓縮tar.gz的文件 CODE: [Copy to clipboard] --------------------------------------------------------------------------------
tar -xvzf mysql-standard-4.1.8-pc-linux-i686.tar.gz 編譯方法: 很奇怪居然沒有要求我編譯?
這個是因為我下載的版本是二進位的包版本。下載一個源碼版本就可以了。
Quote: NOTE: This is a MySQL binary distribution. It's ready to run, you don't need to configure it!
To help you a bit, I am now going to create the needed MySQL databases and start the MySQL server for you. If you run into any trouble, please consult the MySQL manual, that you can find in the Docs directory.
Installing all prepared tables 041230 5:48:16 [Warning] Asked for 196608 thread stack, but got 126976 Fill help tables 041230 5:48:16 [Warning] Asked for 196608 thread stack, but got 126976
To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: ./bin/mysqladmin -u root password 'new-password' ./bin/mysqladmin -u root -h bbsback password 'new-password' See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run the ./bin/mysql_fix_privilege_tables. Otherwise you will not be able to use the new GRANT command!
You can start the MySQL daemon with: cd . ; ./bin/mysqld_safe &
You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory: cd sql-bench ; perl run-all-tests
Please report any problems with the ./bin/mysqlbug script!
The latest information about MySQL is available on the web at http://www.mysql.com Support MySQL by buying support/licenses at https://order.mysql.com Starting the mysqld server. You can test that it is up and running with the command: ./bin/mysqladmin version [root@bbsback mysql-standard-4.1.8-pc-linux-i686]# chown: `mysql': invalid user A mysqld process already exists
先不管它。到時候用phpMyAdmin來管理。
現在開始安裝Zeus,版本4.3 繼續連上ftp,下載三個文件: CODE: [Copy to clipboard] --------------------------------------------------------------------------------
get Zeus_43_Linux-x86.tar get license.key get zeus.web 解壓縮 CODE: [Copy to clipboard] --------------------------------------------------------------------------------
tar -xzvf Zeus_43_Linux-x86.tar cd Zeus_43_Linux-x86 ./zinstall Ctrl+C,然後輸入accept同意協議,
回車,默認裝在[/usr/local/zeus]目錄下
Quote: Installation options:
1. Full install of both admin server & web server 2. Stand-alone install of admin server 3. Clustered install of web server H. Help
Choose installation option [1]: 1
選擇安裝1,全部安裝
輸入key文件地址: CODE: [Copy to clipboard] --------------------------------------------------------------------------------
/root/tmp/src/license.key 輸入管理員密碼
Quote: Please choose a password for the admin server: Re-Enter
不允許SNMP
Quote: Enable SNMP support for web package? Y/N [N]:
用Nobody用戶/用戶組執行
Quote: Choose a UNIX user for the web process to run as [nobody]: Choose a UNIX group for the web process to run as [nobody]:
允許開機運行Zeus
Quote: Would you like Zeus to start at boot time? Y/N [Y]:
破解 CODE: [Copy to clipboard] --------------------------------------------------------------------------------
cp -f /root/tmp/src/zeus.web /usr/local/zeus/web/bin 直接複製之後有點問題,需要手動把這個文件許可權改成755(這一步並不是每次都會遇到。在as3上遇到了。奇怪) CODE: [Copy to clipboard] --------------------------------------------------------------------------------
cd /usr/local/src 感覺澳大利亞的會快一點(實際 200K/s 左右) wget http://www.php.net/get/php-4.3.9.tar.gz/from/au.php.net/mirror tar xvzf php-4.3.9.tar.gz cd php-4.3.9/ ./configure --prefix=/usr/local/php --enable-fastcgi --enable-force-cgi-redirect --with-config-file-path=/etc --with-zlib --with-mysql --with-xml make make install cp php.ini-dist /etc/php.ini
安裝Zend Optimizer cd /usr/local/src wget http://download.discuz.net/ZendO ... glibc21-i386.tar.gz tar xvzf ZendOptimizer-2.5.5-linux-glibc21-i386.tar.gz cd ZendOptimizer-2.5.5-linux-glibc21-i386 ./install.sh 一陣回車 問Confirm the location of your php.ini file的時候打入/etc 問Are you using Apache web server?的時候選No
將 Specify the maximum number of PHP processes that should be created for each user: 由默認的 8 改為 5
將 Specify the maximum number of requests that an individual PHP process should handle. This prevents errant PHP processes from consuming too much memory. 由默認的 500 改為 200
其實這樣仍然能夠相應 5*200=1000個併發PHP請求了,足矣。 Apply Changes,然後點上面的 This configuration has been modified. Click here for details or to make it take effect. 然後 Commit
解壓並安裝 tar xvzf ZendPerformanceSuite-3.6.0-Linux_glibc21-i386.tar.gz cd ZendPerformanceSuite-3.6.0-Linux_glibc21-i386 ./install.sh --zeus
Search for a license file on my disk 輸入剛才下載的key位置 /usr/local/src 剩下他自動給的參數都是對的,只要一路回車就可以
/usr/local/zeus/restart-zeus 重啟一下 ZPS應該就裝好了
事實上這次升級,Zeus 4.3+PHP這個組合最閃亮的地方在於FastCGI的許可權設定,在虛擬主機的FastCGI設置中,具備了如下選項: Owner of the requested file Owner of the FastCGI executable Owner of the document root Specified uid / gid: 我們可以輕鬆的指定PHP運行的用戶,配合php.ini中open_base限定到用戶目錄(如/home),可徹底解決Zeus 4.2中的FastCGI許可權問題。