XAMPP目錄結(jié)構(gòu)

XAMPP目錄結(jié)構(gòu)

重要的文件和目錄

文件/目錄????????????????????????????? 用途

/opt/lampp/bin/XAMPP 命令庫(kù)。例如 /opt/lampp/bin/mysql 可執(zhí)行 MySQL 監(jiān)視器。

/opt/lampp/htdocs/Apache 文檔根目錄。

/opt/lampp/etc/httpd.confApache 配制文件。

/opt/lampp/etc/my.cnfMySQL 配制文件。

/opt/lampp/etc/php.iniPHP 配制文件。

/opt/lampp/etc/proftpd.confProFTPD 配制文件。(從 0.9.5 版開始)

/opt/lampp/phpmyadmin/config.inc.phpphpMyAdmin 配制文件。

----------------------------------------------------------------------

阿里云Linux環(huán)境下,進(jìn)入后,在opt目錄上傳xampp安裝包:?xampp-linux-x64-5.6.3-0-installer.run

上傳后可以在ftp工具中修改為755權(quán)限


Linux下XAMPP環(huán)境安裝

官方教程:https://www.apachefriends.org/faq_linux.html

安裝XAMPP

Choose your flavor for your linux OS, the 32-bit or 64-bit version.

Change the permissions to the installer

chmod 755 xampp-linux-*-installer.run

Run the installer

sudo ./xampp-linux-*-installer.run

That's all. XAMPP is now installed below the /opt/lampp directory.


啟動(dòng)XAMPP:

To start XAMPP simply call this command:

sudo /opt/lampp/lampp start

You should now see something like this on your screen:

Starting XAMPP 1.8.2...

LAMPP: Starting Apache...

LAMPP: Starting MySQL...

LAMPP started.

Ready. Apache and MySQL are running.

If you get any error messages visitour community pagesfor help.

Also, note that there is a graphical tool that you can use to manage your servers easily. You can start this tool with the following commands:

cd /opt/lampp

sudo ./manager-linux.run (or manager-linux-x64.run)

停止XAMPP:

To stop XAMPP simply call this command:

sudo /opt/lampp/lampp stop

You should now see something like this on your screen:

Stopping XAMPP 1.8.2...

LAMPP: Stopping Apache...

LAMPP: Stopping MySQL...

LAMPP stopped.

If you get any error messages visitour community pagesfor help.

Also, note that there is a graphical tool that you can use to start/stop your servers easily. You can start this tool with the following commands:

cd /opt/lampp

sudo ./manager-linux.run (or manager-linux-x64.run)



------------------------------------------------------------

首先,請(qǐng)從www.xampp.org下載最新版XAMPP。然后,將安裝文件服知道/opt下并解壓。如果你計(jì)算機(jī)沒(méi)有/opt目錄,清用超級(jí)用戶身份執(zhí)行mkdir/opt命令來(lái)創(chuàng)建目錄。如果計(jì)算機(jī)沒(méi)有sudo命令請(qǐng)用su命令并輸入超級(jí)用戶密碼來(lái)切換到超級(jí)用戶。


使用以下命令將文件復(fù)制到/opt:

$sudo cp xampp-linux-x.x.tar.gz /opt


使用一下命令進(jìn)入opt/目錄并解壓縮文件:

$ cd /opt

$ sudo tar zxvf xampp-linux-x.x-x.tar.gz /opt


卸載 XAMPP,只需輸入如下命令:sudo rm -rf /opt/lampp

卸載完成。


如果想要普通用戶能寫htdocs目錄,清修改目錄權(quán)限。

$ sudo chmod -R a+rw /opt/lampp/htdocs


啟動(dòng)或停止xampp:

$ sudo /opt/lampp/lampp start & stop


小技巧:

Linux下的XAMPP圖形化面板


$ cd /opt/lampp/share/xampp-control-panel

$ sudo ./xampp-control-panel


XAMPP 命令

安裝 XAMPP

tar xvfz xampp-linux-1.6.4.tar.gz -C /opt

啟動(dòng) XAMPP

/opt/lampp/lampp start

停止 XAMPP

/opt/lampp/lampp stop


重啟 XAMPP

/opt/lampp/lampp restart

安全設(shè)置

/opt/lampp/lampp security

使用php4

/opt/lampp/lampp php4

使用php5

/opt/lampp/lampp php5

查看php版本

/opt/lampp/lampp phpstatus

只啟動(dòng) Apache

/opt/lampp/lampp startapache

停止 Apache

/opt/lampp/lampp stopapache

啟動(dòng) Apache 的 SSL 支持

/opt/lampp/lampp startssl

停止 Apache 的 SSL 支持

/opt/lampp/lampp stopssl

只啟動(dòng) MySQL 數(shù)據(jù)庫(kù)

/opt/lampp/lampp startmysql

停止 MySQL 數(shù)據(jù)庫(kù)

/opt/lampp/lampp stopmysql

啟動(dòng) ProFTPD 服務(wù)

/opt/lampp/lampp startftp

停止 ProFTPD 服務(wù)器

/opt/lampp/lampp stopftp

隨系統(tǒng)自動(dòng)啟動(dòng)

ln -s /opt/lampp/lampp /etc/rc.d/rc3.d/S99lampp

ln -s /opt/lampp/lampp /etc/rc.d/rc4.d/S99lampp

ln -s /opt/lampp/lampp /etc/rc.d/rc5.d/S99lampp

取消隨系統(tǒng)自動(dòng)運(yùn)行

ln -s /opt/lampp/lampp K01lampp

卸載 XAMPP

rm -rf /opt/lampp

XAMPP 重要的文件和目錄

XAMPP 命令庫(kù)。例如 /opt/lampp/bin/mysql 可執(zhí)行 MySQL 監(jiān)視器

/opt/lampp/bin/

Apache 文檔根目錄

/opt/lampp/htdocs/

Apache 配置文件

/opt/lampp/etc/httpd.conf

MySQL 配置文件

/opt/lampp/etc/my.cnf

PHP 配制文件

/opt/lampp/etc/php.ini

ProFTPD 配制文件。(從 0.9.5 版開始)

/opt/lampp/etc/proftpd.conf

phpMyAdmin 配制文件

/opt/lampp/phpmyadmin/config.inc.php

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容