Ubuntu XAMPP

使用 Ubuntu 作業系統,安裝 XAMPP。

檢視 Ubuntu 詳細資訊

1
2
3
4
5
6
7
lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal

只確認 Ubuntu 版本

1
2
3
lsb_release -d

Description: Ubuntu 20.04.4 LTS

XAMPP

Linux XAMPP

XAMPP

複製以下

1
https://downloadsapachefriends.global.ssl.fastly.net/8.0.19/xampp-linux-x64-8.0.19-0-installer.run

Ubuntu

安裝

1
wget https://downloadsapachefriends.global.ssl.fastly.net/8.0.19/xampp-linux-x64-8.0.19-0-installer.run

權限

1
2
3
4
sudo chmod 755 xampp-linux-x64-8.0.19-0-installer.run
sudo chmod +x xampp-linux-x64-8.0.19-0-installer.run

ls -l xampp-linux-x64-8.0.19-0-installer.run

Xampp action

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Usage: xampp <action>

start Start XAMPP (Apache, MySQL and eventually others)
startapache Start only Apache
startmysql Start only MySQL
startftp Start only ProFTPD

stop Stop XAMPP (Apache, MySQL and eventually others)
stopapache Stop only Apache
stopmysql Stop only MySQL
stopftp Stop only ProFTPD

reload Reload XAMPP (Apache, MySQL and eventually others)
reloadapache Reload only Apache
reloadmysql Reload only MySQL
reloadftp Reload only ProFTPD

restart Stop and start XAMPP
security Check XAMPP's security

enablessl Enable SSL support for Apache
disablessl Disable SSL support for Apache

backup Make backup file of your XAMPP config, log and data files

oci8 Enable the oci8 extenssion

panel Starts graphical XAMPP control panel

啟動

1
2
3
4
5
6
7
8
sudo /opt/lampp/lampp startZ
...


Starting XAMPP for Linux 8.0.19-0...
XAMPP: Starting Apache...already running.
XAMPP: Starting MySQL...already running.
XAMPP: Starting ProFTPD...already running.

修改

1
:/opt/lampp/htdocs/dashboard$ sudo nano index.html

停止

1
sudo /opt/lampp/lampp stop

狀態

1
sudo /opt/lampp/lampp status

卸載

1
sudo /opt/lampp/uninstall

作者

Nigo Chen

發表於

2022-07-12

更新於

2022-07-12

許可協議

評論

© 2022

0個訪客