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'

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值