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'

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