- 論壇徽章:
- 0
|
呵呵,你裝多少套都沒有關(guān)系,比如你只想裝一個(gè)數(shù)據(jù)庫(kù),兩個(gè)apache,一個(gè)php(多個(gè)也成)
可以/youself/
-----mysql
-----apache1 http.conf > port 80
-----apache2 http.conf > port 8080
-----php
----- gd
----- zend
------memcache
------等等了,都是平級(jí)
在這個(gè)平級(jí)中,你可以安裝兩個(gè)mysql 端口要分,也可以安裝兩套php
不同的環(huán)境,要根據(jù)你的需求定義
如果你想跑多個(gè)站點(diǎn),那么一套也可以,你配置多套虛擬主機(jī)就可以了。
apache的http.conf里面有例子
NameVirtualHost *:80
<Directory "/www/site1">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin king@kroznot.com
DocumentRoot /www/site1
ServerName site1.dev.com
ErrorLog logs/site1.dev.com-error_log
CustomLog logs/site1.dev.com-access_log common
</VirtualHost>
<Directory "/www/site2">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
ServerAdmin king@kroznot.com
DocumentRoot /www/site2
ServerName site2.dev.com
ErrorLog logs/site2.dev.com-error_log
CustomLog logs/site2.dev.com-access_log common
</VirtualHost>
然后在你的xp中,配置IP解析,編輯C:\WINDOWS\system32\drivers\etc\hosts文件,在里面添加
192.168.1.12 site1.dev.com
192.168.1.12 site2.dev.com
這樣你就可以同時(shí)使用多套系統(tǒng)了 |
評(píng)分
-
查看全部評(píng)分
|