XAMPP Linux下使用集成環境安裝

1.查閱官網資料

參考http://www.apachefriends.org/zh_cn/xampp-linux.html#1677

2.下載安裝包

*. 區分Linux是32位的還是64位的

[root@qs-dmm-rh2 ~]# getconf LONG_BIT

32

[root@qs-xezf-db2 ~]# getconf LONG_BIT

64

參考http://blog.csdn.net/tianlesoftware/article/details/6267115

*. 下載對應位數的安裝包

安裝包有兩種類型的文件,以.run結尾和tar.gz結尾:

tar.gz結尾的解壓縮並並行即可

cd /opt/
tar xvfz xampp-linux-1.5.0.tar.gz -C /opt
 .run結尾的可執行文件
chmod +x xampp-linux-x64-1.8.2-0-installer.run
./xampp-linux-x64-1.8.2-0-installer.run

*. 設置文件夾權限

chmod -R 777 **

*. 啓動XAMPP

/opt/lampp/lampp start 或 stop 或 restart

*. 改變系統顯示字符類型

vi /etc/sysconfig/i18n
LANG = en_US.UTF-8  或 zh_CN.UTF-8

*. 可ping通,wget可訪問,但是IP無法訪問,是因爲防火牆禁止了FTP

service iptables stop  或 chkconfig iptables off

*. 查看運行中的進程

netstat -tpnl

netstat -tlnp|grep mysql

*. apache停止命令

service httpd stop

*. mysql停止命令

service mysqld stop

*. 創建mysql用戶和數據庫

create database moodle default character set utf8

grant all on moodle to dbuser@"%" identified by '123456'

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章