1. 安裝linux,跳過
http://ftp.gnu.org/gnu/,
ftp://gcc.gnu.org/pub/gcc/libstdc++/
http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/
這個地址不錯,找東西可以在這裏找
2. 安裝lrzsz,方便和本地上傳下載,登錄linux,
#!/bin/bash
lrzsz_url_path=https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz
local_file_dir=lrzsz
local_file_name=$local_file_dir.tar.gz
wget $lrzsz_url_path -O $local_file_name
tar -zxf $local_file_name
cd local_file_dir
echo "Please read INSTALL, configure as descriped in INSTALL"
http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html
4.避免長時間不操作斷開,http://www.cnblogs.com/aoyihuashao/p/3298950.html
5.安裝apache,httpd.conf添加多個端口
</pre><pre code_snippet_id="450787" snippet_file_name="blog_20140815_2_236586" name="code" class="plain">Listen 8080
Listen 8090
NameVirtualhost localhost:8080
<virtualhost localhost:8080>
documentroot /root/net/8080/
servername locahost:8080
</virtualhost>
NameVirtualhost localhost:8090
<virtualhost localhost:8090>
documentroot /root/net/8090
servername locahost:8090
</virtualhost>
<Directory "/root/net/8080">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
6. 安裝php,先安裝libxml2
可以從此處獲得,or csdn地址,搜下libxml就有好多資源
http://www.xmlsoft.org/downloads.html
or ftp://xmlsoft.org/libxml2/
安裝命令,可單項執行,避免有錯看不到
./configure --prefix=/root/local; make; make install;
export LD_LIBRARY_PATH=/root/local/lib/; export PKG_CONFIG_PATH=/root/local/lib/pkgconfig
安裝mysql,參考http://blog.csdn.net/lmm2003/article/details/6915920
INSTALL-source中已經詳細描述安裝過程,唯一需要注意的是
my.cnf 可以從share/mysql/ 下拷貝一個
不是root賬號,需要在my.cnf中寫basedir和datadir
./bin/mysql_install_db --defaults-file=/home/work/zhengkuan/local/mysql/etc/my.cnf --user=zhengkuan
可能會提示 unknown option '--skip-federated',可以把my.cnf skip-federated註釋掉
安裝php,可能會提示xml2-config not found. Please check your libxml2 installtion, 加上libxml 安裝位置即可
./configure --prefix=/root/local/ --with-libxml-dir=/root/local/
7.安裝python
from:https://www.python.org/downloads/source/
wget https://www.python.org/ftp/python/2.7.9/Python-2.7.9.tgz
tar -zxvf Python-2.7.9.tgz
cd Python-2.7.9 && ./configure --prefix=/usr/ && make && make install
附linux常用命令集合:http://www.php100.com/html/webkaifa/Linux/2009/1106/3485.html
安裝mysql經驗參考,http://www.t086.com/article/638
以上有問題,歡迎告知補充,多謝各位支持