Ubuntu 安裝:修訂版本之間的差異

出自幸福奉學網
跳轉到: 導覽搜尋
第 5 行: 第 5 行:
 
2-1  
 
2-1  
  
安裝apache
+
*安裝apache
  
 
sudo apt update && sudo apt install apache2; [https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F70b0415e-cccc-4309-bdd1-2108b2d444c4%2F%E6%88%AA%E5%9C%96_2022-03-05_%E4%B8%8B%E5%8D%8811.14.41.png?table=block&id=128a4edb-34e7-4594-bcda-c056ecb2bdc2&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=2000&userId=&cache=v2 圖示]
 
sudo apt update && sudo apt install apache2; [https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2F70b0415e-cccc-4309-bdd1-2108b2d444c4%2F%E6%88%AA%E5%9C%96_2022-03-05_%E4%B8%8B%E5%8D%8811.14.41.png?table=block&id=128a4edb-34e7-4594-bcda-c056ecb2bdc2&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=2000&userId=&cache=v2 圖示]
  
 +
*將ssh打開,這樣未來連進來才不用一直打密碼
  
 +
sudo ufw allow OpenSSH
 +
 +
sudo ufw allow in "Apache Full"
 +
 +
sudo ufw enable
 +
 +
sudo ufw status
 +
 +
sudo service apache2 status
 +
 +
[https://therapeutic-principle-c71.notion.site/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Feaadcbd2-64c9-4cb7-a6e3-8cd9de194a3d%2F%E6%88%AA%E5%9C%96_2022-03-05_%E4%B8%8B%E5%8D%8811.24.29.png?table=block&id=7dba7154-ea5c-4118-90b0-3f21a3da6122&spaceId=e5840612-bae2-49d9-b655-4b0b08db41ec&width=2000&userId=&cache=v2 圖示]
 +
 +
*打開瀏覽器 輸入127.0.0.1測試看看
 +
*進去index看看
 +
 +
sudo nano /var/www/html/index.html
 +
 +
*安裝mysql
 +
 +
sudo apt update && sudo apt install mysql-server
 +
 +
*查看mysql狀態
 +
 +
sudo service mysql status
 +
 +
*設置mysql安全性─帳號密碼
 +
 +
sudo mysql_secure_installation
 +
 +
*測試mysql service
 +
 +
sudo mysql
 +
 +
確認之後輸入exit離開
 +
 +
*安裝php
 +
 +
sudo apt update && sudo apt install php libapache2-mod-php phy-mysql
  
  

2022年6月12日 (日) 23:19的修訂版本

目錄

1.幸福奉學

1-1 Ubuntu 安裝

2.幸福分享

2-1

  • 安裝apache

sudo apt update && sudo apt install apache2; 圖示

  • 將ssh打開,這樣未來連進來才不用一直打密碼

sudo ufw allow OpenSSH

sudo ufw allow in "Apache Full"

sudo ufw enable

sudo ufw status

sudo service apache2 status

圖示

  • 打開瀏覽器 輸入127.0.0.1測試看看
  • 進去index看看

sudo nano /var/www/html/index.html

  • 安裝mysql

sudo apt update && sudo apt install mysql-server

  • 查看mysql狀態

sudo service mysql status

  • 設置mysql安全性─帳號密碼

sudo mysql_secure_installation

  • 測試mysql service

sudo mysql

確認之後輸入exit離開

  • 安裝php

sudo apt update && sudo apt install php libapache2-mod-php phy-mysql


3.幸福茶香

3-1


4.幸福彩虹

4-1