開發與維運

第6天

lamp是web開發的基礎環境,而一步步裝非常的慢,且容易出問題(版本不同等等),這裡給一種一鍵安裝的辦法。

首先安裝一下tasksel

sudo apt-get install tasksel

一鍵搭建 : 可以使用 sudo tasksel install lamp-server 直接進行安裝

卸載: sudo tasksel remove lamp-server
根目錄 : /var/www 中

LAMP環境的配置文件
通過apt-get安裝的配置文件目錄在/etc/中

apache /etc/apache2 兩個主要模塊 mods-enable 和 mods-available

service apache2 restart

MySQL /etc/mysql my.conf

PHP /etc/php

Leave a Reply

Your email address will not be published. Required fields are marked *