Centos-LAMP安裝:修訂版本之間的差異

出自幸福奉學網
跳轉到: 導覽搜尋
第 32 行: 第 32 行:
  
 
[https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fba582bcf-53f8-4b0d-aea1-d9a3173cb217%2FUntitled.png?table=block&id=09af0d79-0f43-4c8b-bf88-fd655f6d4bba&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=2000&userId=&cache=v2 圖示]
 
[https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fba582bcf-53f8-4b0d-aea1-d9a3173cb217%2FUntitled.png?table=block&id=09af0d79-0f43-4c8b-bf88-fd655f6d4bba&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=2000&userId=&cache=v2 圖示]
 +
 +
二、安裝Mariadb [https://blog.xuite.net/tolarku/blog/542563206 參考網址]
 +
 +
*yum install mariadb-server mariadb
 +
 +
[https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Ffe01e362-8eab-4268-9db8-597f85a552ec%2FUntitled.png?table=block&id=cdb298c1-f6a7-4970-9a2e-df3cd5009210&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=1180&userId=&cache=v2 圖示]
 +
  
 
==3.幸福茶香==
 
==3.幸福茶香==

2022年6月12日 (日) 22:24的修訂版本

目錄

1.幸福奉學

1-1 Centos-LAMP安裝

2.幸福分享

一、安裝Apache

  • 1.安裝httpd:yum install httpd

圖示 01圖示 02

  • 2.開啟httpd:systemctl start httpd

圖示

  • 3.確認是否Apache是否運行:systemctl status httpd

圖示

  • 4.啟動apache to start during system boot:systemctl enable httpd

圖示

備註:需要設定防火牆讓http跟https通過,否則如果從本機開啟瀏覽器,會看不到apache網頁

開啟防火牆,讓 web (port:80, 443) 流量可以穿過 firewall

$ sudo firewall-cmd --permanent --zone=public --add-service=http

$ sudo firewall-cmd --permanent --zone=public --add-service=https

$ sudo firewall-cmd --reload

5.打開Linux瀏覽器,輸入server的IP或數入localhost,看到以下畫面代表成功

圖示

二、安裝Mariadb 參考網址

  • yum install mariadb-server mariadb

圖示


3.幸福茶香

3-1


4.幸福彩虹

4-1