1. 程式人生 > >Linux MySql+Php詳細配製

Linux MySql+Php詳細配製

轉自:http://www.jb51.net/article/23255.htm

無意中還找到了CentOS的專業論壇,記住:http://www.centospub.com 
於是,開始的學習配置


本次環境:


CentOS系統,


mysql-server(版本忘了,因為是使用yum安裝的)


過程如下(轉載,根據本人安裝詳細要求,略加修改) :


 在提到網站構架的時候,我們經常能夠看到“LAMP”的說法,它就是“Linux + Apache + MySQL + PHP”。 MySQL+PHP的協同成功案例已經很多了。比如國外的PHPBB,VBB,國內的Discuz!論壇等等程式,都是用PHP + MySQL實現的。和那些商務專用資料庫比起來,MySQL的功能和規模可能被好多人說的遜色一些,但對於我們個人來說,它的功能已經算是完備。而且,通 過Discuz!官方論壇上同時線上人數的數目,也可以證明MySQL的穩定性。


  這裡,介紹一下CentOS下MySQL資料庫伺服器的構建方法。 






安裝MySQL及相關元件 
 




  首先,安裝MySQL。






[

[email protected] ~]# yum -y install mysql-server  ← 安裝MySQL


Setting up Install Process
Setting up repositories
dag 100% |=========================| 1.1 kB 00:00
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 106 kB 00:00
update : ################################################## 261/261
Added 5 new packages, deleted 0 old in 2.02 seconds
Reducing Dag RPM Repository for Red Hat Enterprise Linux to included packages only
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for mysql-server to pack into transaction set.
mysql-server-4.1.20-1.RHE 100% |=========================| 29 kB 00:00
---> Package mysql-server.i386 0:4.1.20-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Dependency: libmysqlclient.so.14(libmysqlclient_14) for package: mysql-server
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server
--> Processing Dependency: perl-DBI for package: mysql-server
--> Processing Dependency: perl(DBI) for package: mysql-server
--> Processing Dependency: mysql = 4.1.20-1.RHEL4.1 for package: mysql-server
--> Processing Dependency: libmysqlclient.so.14 for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14(libmysqlclient_14) for package: mysql-server
--> Processing Dependency: libmysqlclient_r.so.14 for package: mysql-server
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-DBD-MySQL to pack into transaction set.
perl-DBD-MySQL-2.9004-3.1 100% |=========================| 5.4 kB 00:00
---> Package perl-DBD-MySQL.i386 0:2.9004-3.1 set to be updated
---> Downloading header for mysql to pack into transaction set.
mysql-4.1.20-1.RHEL4.1.i3 100% |=========================| 35 kB 00:00
---> Package mysql.i386 0:4.1.20-1.RHEL4.1 set to be updated
---> Downloading header for perl-DBI to pack into transaction set.
perl-DBI-1.40-8.i386.rpm 100% |=========================| 11 kB 00:00
---> Package perl-DBI.i386 0:1.40-8 set to be updated
--> Running transaction check 
Dependencies Resolved


=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
mysql-server i386 4.1.20-1.RHEL4.1 update 9.8 M
Installing for dependencies:
mysql i386 4.1.20-1.RHEL4.1 update 2.9 M
perl-DBD-MySQL i386 2.9004-3.1 base 111 k
perl-DBI i386 1.40-8 base 466 k


Transaction Summary
=============================================================================
Install 4 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 13 M
Downloading Packages:
(1/4): perl-DBD-MySQL-2.9 100% |=========================| 111 kB 00:00
(2/4): mysql-server-4.1.2 100% |=========================| 9.8 MB 00:11
(3/4): mysql-4.1.20-1.RHE 100% |=========================| 2.9 MB 00:03
(4/4): perl-DBI-1.40-8.i3 100% |=========================| 466 kB 00:01
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: perl-DBI ######################### [1/4]
Installing: mysql ######################### [2/4]
Installing: perl-DBD-MySQL ######################### [3/4]
Installing: mysql-server ######################### [4/4]


Installed: mysql-server.i386 0:4.1.20-1.RHEL4.1
Dependency Installed: mysql.i386 0:4.1.20-1.RHEL4.1 perl-DBD-MySQL.i386 0:2.9004-3.1 perl-DBI.i386 0:1.40-8
Complete! 




  然後,安裝PHP訪問MySQL資料庫的工具“php-mysql”。






[
[email protected]
~]# yum -y install php-mysql  ← 安裝php-mysql


Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Reducing Dag RPM Repository for Red Hat Enterprise Linux to included packages only
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for php-mysql to pack into transaction set.
php-mysql-4.3.9-3.15.i386 100% |=========================| 18 kB 00:00
---> Package php-mysql.i386 0:4.3.9-3.15 set to be updated
--> Running transaction check 
Dependencies Resolved


=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
php-mysql i386 4.3.9-3.15 update 35 k


Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 35 k
Downloading Packages:
(1/1): php-mysql-4.3.9-3. 100% |=========================| 35 kB 00:00
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: php-mysql ######################### [1/1]


Installed: php-mysql.i386 0:4.3.9-3.15
Complete! 
配置MySQL 
 




  然後,配置MySQL。






[
[email protected]
~]# vi /etc/my.cnf  ← 編輯MySQL的配置檔案


[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
# Default to using old password format for compatibility with mysql 3.x
# clients (those using the mysqlclient10 compatibility package).
old_passwords=1  ← 找到這一行,在這一行的下面新增新的規則,讓MySQL的預設編碼為UTF-8
default-character-set = utf8  ← 新增這一行


然後在配置檔案的文尾填加如下語句:


[mysql]
default-character-set = utf8 
啟動MySQL服務 
 




  啟動MySQL,並讓MySQL在系統重新啟動後隨系統自動啟動。






[[email protected] ~]# chkconfig mysqld on  ← 設定MySQL服務隨系統啟動自啟動


[[email protected] ~]# chkconfig --list mysqld  ← 確認MySQL自啟動
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off  ← 如果2--5為on的狀態就OK


[[email protected] ~]# /etc/rc.d/init.d/mysqld start  ← 啟動MySQL服務


Initializing MySQL database:         [ OK ]
Starting MySQL:              [ OK ] 
MySQL初始環境設定 
 




[1]為MySQL的root使用者設定密碼


  MySQL在剛剛被安裝的時候,它的root使用者是沒有被設定密碼的。首先來設定MySQL的root密碼。






[[email protected] ~]# mysql -u root  ← 用root使用者登入MySQL伺服器


Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> select user,host,password from mysql.user;  ← 檢視使用者資訊
+------+------------------------------+---------------+
| user | host          | password |
+------+------------------------------+---------------+
| root | localhost        |       |  ← root密碼為空 
| root | sample.centospub.com  |       |  ← root密碼為空
|   | sample.centospub.com |       |
|   | localhost       |       |
+------+------------------------------+---------------+
4 rows in set (0.00 sec)


mysql> set password for [email protected]=password('在這裡填入root密碼');  ← 設定root密碼
Query OK, 0 rows affected (0.01 sec)


mysql> set password for [email protected]'sample.centospub.com'=password('在這裡填入root密碼');  ← 設定root密碼
Query OK, 0 rows affected (0.01 sec)


mysql> select user,host,password from mysql.user;  ← 檢視使用者資訊
+------+--------------------------------+--------------------------+
| user | host          | password     |
+------+--------------------------------+--------------------------+
| root | localhost        | 19b68057189b027f |  ← root密碼被設定
| root | sample.centospub.com   | 19b68057189b027f |  ← root密碼被設定
|    | sample.centospub.com   |          |
|    | localhost        |          |
+------+--------------------------------+--------------------------+
4 rows in set (0.01 sec)


mysql> exit  ← 退出MySQL伺服器
Bye 




   然後,測試一下root密碼有沒有生效。






[[email protected] ~]# mysql -u root  ← 通過空密碼用root登入


ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)  ← 出現此錯誤資訊說明密碼設定成功


[[email protected] ~]# mysql -u root -h sample.centospub.com  ← 通過空密碼用root登入


ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)  ← 出現此錯誤資訊說明密碼設定成功


[[email protected] ~]# mysql -u root -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.  ← 確認用密碼能夠成功登入
Your MySQL connection id is 5 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> exit
Bye


[[email protected] ~]# mysql -u root -h sample.centospub.com -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.  ← 確認用密碼能夠成功登入
Your MySQL connection id is 6 to server version: 4.1.20


Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> exit  ← 退出MySQL伺服器
Bye 




[2] 刪除匿名使用者


  在MySQL剛剛被安裝後,存在使用者名稱、密碼為空的使用者。這使得資料庫伺服器有無需密碼被登入的可能性。為消除隱患,將匿名使用者刪除。






[[email protected] ~]# mysql -u root -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> select user,host from mysql.user;  ← 檢視使用者資訊
+------+----------------------------+
| user | host         |
+------+----------------------------+
|   | localhost       |


|   | 127.0.0.1       |
| root | localhost       |
|   | sample.centospub.com |
| root | sample.centospub.com  |
+------+----------------------------+
4 rows in set (0.02 sec)


mysql> delete from mysql.user where user='';  ← 刪除匿名使用者
Query OK, 2 rows affected (0.17 sec)


mysql> select user,host from mysql.user;  ← 檢視使用者資訊
+------+----------------------------+
| user | host         |
+------+----------------------------+
| root | localhost      |
| root | sample.centospub.com |
+------+----------------------------+
2 rows in set (0.00 sec)


mysql> exit  ← 退出MySQL伺服器
Bye 




[3] 刪除測試用資料庫


   在MySQL被安裝後,存在名為test的空資料庫,將它刪除。這裡要注意的是,系統預設的還有一個名為mysql的資料庫,它用於系統管理,所以請不要刪除。






[[email protected] ~]# mysql -u root -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 8 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> show databases;  ← 檢視系統已存在的資料庫
+-------------+
| Database |
+-------------+
| mysql   |
| test   |
+------------+
2 rows in set (0.02 sec)


mysql> drop database test;  ← 刪除名為test的空資料庫
Query OK, 0 rows affected (0.07 sec)


mysql> show databases;  ← 檢視系統已存在的資料庫
+-------------+
| Database |
+-------------+
| mysql   |  ← 確認名為test的資料庫被刪除,已不存在
+-------------+
1 row in set (0.00 sec)


mysql> exit  ← 退出MySQL伺服器
Bye 
測試MySQL 
 




  下面對MySQL進行測試。包括建立新使用者,以及用對關係性資料庫進行資料庫操作的指令來試著建立資料庫及資料表。這裡,新建使用者以centospub為例。






[[email protected] ~]# mysql -u root -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 9 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> grant all privileges on test.* to [email protected] identified by '在這裡定義密碼';  ← 建立對test資料庫有完全操作許可權的名為centospub的使用者
Query OK, 0 rows affected (0.03 sec)


mysql> select user from mysql.user where user='centospub';  ← 確認centospub使用者的存在與否
+---------+
| user  |
+---------+
| centospub |  ← 確認centospub已經被建立
+---------+
1 row in set (0.01 sec)


mysql> exit  ← 退出MySQL伺服器
Bye


[[email protected] ~]# mysql -u centospub -p  ← 用新建立的centospub使用者登入MySQL伺服器
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10 to server version: 4.1.20


Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> create database test;  ← 建立名為test的資料庫
Query OK, 1 row affected (0.00 sec)


mysql> show databases;  ← 檢視系統已存在的資料庫
+-------------+
| Database |
+-------------+
| test    |
+-------------+
1 row in set (0.00 sec)


mysql> use test  ← 連線到資料庫
Database changed


mysql> create table test(num int, name varchar(50));  ← 在資料庫中建立表
Query OK, 0 rows affected (0.03 sec)


mysql> show tables;  ← 檢視資料庫中已存在的表
+-------------------+
| Tables_in_test |
+-------------------+
| test     |
+-------------------+
1 row in set (0.01 sec)


mysql> insert into test values(1,'Hello World!');  ← 插入一個值到表中
Query OK, 1 row affected (0.02 sec)


mysql> select * from test;  ← 檢視資料庫中的表的資訊
+------+-------------------+
| num | name      |
+------+-------------------+
| 1   | Hello World!  |
+------+-------------------+
1 row in set (0.00 sec)


mysql> update test set name='Hello Everyone!';  ← 更新表的資訊,賦予新的值
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0


mysql> select * from test;  ← 檢視資料庫中的表的資訊
+------+----------------------+
| num | name      |
+------+----------------------+
| 1   | Hello Everyone! |  ← 確認被更新到新的值
+------+----------------------+
1 row in set (0.01 sec)


mysql> delete from test where num=1;  ← 刪除表內的值
Query OK, 1 row affected (0.00 sec)


mysql> select * from test;  ← 確認刪除結果
Empty set (0.01 sec)


mysql> drop table test;  ← 刪除表
Query OK, 0 rows affected (0.01 sec)


mysql> show tables;  ← 查看錶資訊
Empty set (0.00 sec)  ← 確認表已被刪除


mysql> drop database test;  ← 刪除名為test的資料庫
Query OK, 0 rows affected (0.01 sec)


mysql> show databases;  ← 檢視已存在的資料庫
Empty set (0.01 sec)  ← 確認test資料庫已被刪除(這裡非root使用者的關係,看不到名為mysql的資料庫)


mysql> exit  ← 退出MySQL伺服器
Bye 




   然後,刪除測試用過的遺留使用者。






[[email protected] ~]# mysql -u root -p  ← 通過密碼用root登入
Enter password:  ← 在這裡輸入密碼


Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 4.1.20 
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.


mysql> revoke all privileges on *.* from [email protected];  ← 取消centospub使用者對資料庫的操作許可權
Query OK, 0 rows affected (0.00 sec)


mysql> delete from mysql.user where user='centospub' and host='localhost';  ← 刪除centospub使用者
Query OK, 1 row affected (0.01 sec)


mysql> select user from mysql.user where user='centospub';  ← 查詢使用者centospub,確認已刪除與否
Empty set (0.01 sec)  ← 確認centospub使用者已不存在


mysql> flush privileges;  ← 重新整理,使以上操作生效
Query OK, 0 rows affected (0.01 sec)


mysql> exit
Bye 




  最後,重新啟動一次HTTP服務,讓php-mysql反映到HTTP服務中。






[[email protected] ~]# /etc/rc.d/init.d/httpd restart  ← 重新啟動HTTP服務
Stopping httpd:             [ OK ]
Starting httpd:             [ OK ] 


 終於搞掂!


(*^__^*) 嘻嘻……,接下來配置phpmyadmin....




詳細出處參考:http://www.jb51.net/article/23255.htm
詳細出處參考:http://www.jb51.net/article/23255.htm

相關推薦

Linux MySql+Php詳細配製

轉自:http://www.jb51.net/article/23255.htm 無意中還找到了CentOS的專業論壇,記住:http://www.centospub.com  於是,開始的學習配置 本次環境: CentOS系統, mysql-server(版本忘了,因為是

Mac OS X 配置 Apache+Mysql+PHP 詳細教程

檔案儲存之後,給它賦予相應的許可權: sudo chmod 755 /etc/apache2/users/haibor.conf 接下來重啟 Apache,以使該配置檔案生效: sudo apachectl restart 之後你就可以通過瀏覽器訪問你的使用者級目錄網頁了,你可以隨便防個網頁進去測試一下。根

wuhran的Blog-C++,Linux,MySQL,PHP

  在linux或者unix作業系統中在系統的引導的時候會開啟很多服務,這些服務就叫做守護程序。為了增加靈活性,root可以選擇系統開啟的模式,這些模式叫做執行級別,每一種執行級別以一定的方式配置系統。  守護程序是脫離於終端並且在後臺執行的程序。守護程序脫離於終端是為了避免程序在執行過程中的資訊在任何終端上

linux安裝php詳細過程

之前寫好了nginx的安裝配置,後面就是php的安裝和mysql的安裝,不過時間有限,而且放一篇裡也太長,所以都是分開來寫,php安裝完畢後就是mysql的配置了。一:檢查是否安裝了php1)yum安裝檢查:yum list installed |grep php2)rpm安

linux下安裝nginx+php+mysql環境詳細講解

linux環境:centos 7.0 64位 nginx:nginx-1.8.0.tar.gz php: php-7.1.1.tar.gz mysql: mysql-5.6.21.tar.gz libxml2:libxml2-2.9.1.tar.gz openss

Linux配置Nginx,MySql,php-fpm開機啟動的方法

sleep 管理 support dev view linux 使用 pre work 一. Nginx 開機啟動 NGINX SHELL腳本 放到/etc/init.d/下取名nginx 下面代碼裏根據你原始安裝路徑去更改 nginx="/usr/localinx/s

【轉載】Linux查看 apache,mysql,php安裝路徑

my.cnf sdn mysql目錄 pan sbin dump lin tail art 原文鏈接:http://blog.csdn.net/pengone/article/details/50035889 apache: 如果采用RPM包安裝,安裝路徑應在 /e

Linux+Apache+Mysql+PHP優化技巧

建議 發生 /dev/ 意義 mac 恢復文件 客戶 效果 slave LAMP 平臺由四個組件組成,呈分層結構。每一層都提供了整個軟件棧的一個關鍵部分:Linux、Apache、MySQL、PHP。 LAMP這個詞的由來最早始於德國雜誌“c‘t Maga

linux+nginx+mysql+php環境的搭建

地址 index src 報錯 開始 log 簡單 x86 use 本文主要介紹,簡單的搭建lnmp環境,自己的環境,自己做主 準備要求:全新的liunx環境,本文用的是centerOS6.0 廢話不多說,直接看步驟: 1、開啟nginx80端口和mysql3306端口  

CentOS 6.5下源碼安裝LAMP(Linux+Apache+Mysql+Php)環境

onf 服務器 mysqld pep usr cnblogs char 格式 hash ---恢復內容開始--- 一、系統環境 系統平臺:CentOS 6.5 (Final) Apache版本:httpd-2.2.31.tar.gz(最新版本2015-07-16) M

linuxmysql安裝詳細教程

系統 性能 com mysql用戶 解壓 usr mysql下載 問題 ron 所有平臺的MySQL下載地址為: MySQL 下載. 挑選你需要的 MySQL Community Server 版本及對應的平臺。 MySQL - MySQL服務器。你需要該選項,除非你只想連

Linux 下配置Nginx,MySql,php-fpm開機啟動

開機 日誌 perf rman gin form force roc man 一. Nginx 開機啟動 1、在/etc/init.d/目錄下創建腳本 vim /etc/init.d/nginx 2、編寫腳本內容 (將以下復制進去相應改動安裝路徑) #!/bin/ba

linux-apache-mysql-php

lanpCentOS release 6.5 (Final)x86_64 apache:wget http://archive.apache.org/dist/httpd/httpd-2.2.27.tar.gztar cd ./configure --prifix=/application/apache2.2

centos下部署LAMP環境(Linux+Apache+mysql+php)(轉載文章:https://www.cnblogs.com/apro-abra/p/4862285.html)

roo -s -c ice 自己 sql all p地址 iptable 一:安裝apache 1.安裝yum -y install httpd2.開啟apache服務systemctl start httpd.service3.設置apache服務開機啟動systemct

14.LAMP服務 Linux Apache Mysql Php和防護機制 xinetd、tcp wapper

遠程 wrap light disable scp 機制 鏈接服務器 tab 配置ssh 一.安裝LAMP服務 Linux Apache Mysql Php 要求操作系統支持 php解析 apache調用php插件解析 phpmyadmin yum

Ubuntu 搭建Web服務器(MySQL+PHP+Apache)詳細教程 (全網最全)

rpm php7 grep host 存儲 需要 目錄 所有 提示 Ubuntu 搭建Web服務器(MySQL+PHP+Apache)詳細教程 (全網最全) 看了好多人的博客,有的不全 or 有問題,整理了一下,適合小白 新手先整理幾個小問題 1.為啥使用 Linux 搭建

阿里雲ECS 搭建 Linux+Nginx+Mysql+PHP環境 & 部署php的laravel專案

https://www.cnblogs.com/chenjingxuan/p/8072923.html   在阿里雲買ECS的時候選擇自己習慣的映象系統,我一般都是使用Linux Ubuntu,所以,以下的配置都是在Ubuntu 14.04穩定支援版的環境中搭建Linux+Ngin

如何在伺服器上搭建一個lamp(Linux(CentOS7)+Apache+MySQL+PHP)環境

一、 安裝Apache 1.安裝 yum -y install httpd 1 2.開啟apache服務 systemctl start httpd.service 1 3.設定apache服務開機啟動 systemctl enable httpd.service

Ubuntu 搭建Web伺服器(MySQL+PHP+Apache)詳細教程 (全網最全)

Ubuntu 搭建Web伺服器(MySQL+PHP+Apache)詳細教程 (全網最全) 看了好多人的部落格,有的不全 or 有問題,整理了一下,適合小白 新手先整理幾個小問題 1.為啥使用 Linux 搭建伺服器? 一個是因為主流的雲伺服器太貴,買個低配的容易崩,聽說 Linux 比較穩定,之後 2.

如何在Ubuntu16.04 中安裝Linux, Nginx, MySQL, PHP (LEMP 棧)

介紹 LEMP 棧是用來開發動態網頁和web 應用程式的一系列軟體集合,LEMP描述的是Linux作業系統,Nginx web 伺服器,以及後端資料儲存MySQL/MariaDB資料庫和伺服器端動態指令碼語言PHP. 在此教程中,我們將會演示如何在Ubuntu 16.04 伺服器中安裝一個完整的LE