Ubuntu 18.04 LAMP(Linux+Apache+Mysql+PHP)環境建立
若您覺得文章寫得不錯,請點選文章上的廣告,來支持小編,謝謝。 If you like this post, please click the ads on the blog or buy me a coffee . Thank you very much. 底下紀錄如何在 Ubuntu 18.04 上建立 LAMP 的環境。 This note demonstrates how to create a LAMP environment on an Ubuntu 18.04 server. 步驟一:安裝 Apache Web Server (Step One: Installing apache web server) Open a console and input the following commands to install apache. sudo apt-get update sudo apt-get install apache2 接著查詢主機IP You can find your server's public IP address by the following command: ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' 在瀏覽器鍵入 local host ip。 Type the address in your web browser(Google chrome or firefox .etc). http:/ /server_domain_name_or_IP 若在瀏覽器上看到下圖,表示 apache已安裝成功。 If you see the below message, your apache installation is completed. 可看到上圖時,apache便已經可跑靜態網頁了,預設的html檔案存放位置為 /var/www/html 步驟二:安裝MySql(Step Two: Installing mysql Open a conso...