安裝部署lamp來測試rediect
作者:郎志
用過LAMP的人們都知道,LAMP是由 Linux+Apache+Mysql+Perl/PHP/Python 一起組成的,我們在部署安裝LAMP時,他可以用來測試redriect。讓我們來看看他是如何做的。
安裝部署lamp,測試rediect
- sudo tasksel
- choice lamp suite
- configurate apache port to 8080,because we use nginx as reverse proxy on 80 port
- so we need configure apache2 port to 8080
- http://hi.baidu.com/marshluca/blog/item/258a52dec10dae52cdbf1a7a.html
- the virtual directory is /var/www
- sudo vi /etc/apache2/sites-enabled/000-default replace 80 to 8080
- sudo vi /etc/apache2/ports.conf replace all 80 to 8080
- sudo /etc/init.d/apache2 restart
- go to virtual host directory
- cd /var/www
- put test.php file
- echo "hello world";
- ?>
- ?>
通過文章的描述,我們知道了LAMP可以用來測試rediect,你學會了么,快跟朋友分享吧!
【編輯推薦】
責任編輯:趙鵬
來源:
網絡轉載