CentOS下安装xampp

        准备工作:

                 查看系统版本

                    file /bin/ls 

                     显示系统程序信息,就能看出多少位。


一、xampp下载地址:

http://sourceforge.net/projects/xampp/files/

二、我下载的是xampp-linux-x64-1.8.3-1-installer.run

    5.6.14(2015年11月份更新)

三、下载完以后,给该文件添加执行权限:

chmod  +x xampp-linux-x64-1.8.3-a-installer.run

四、安装xampp过程如下:

[root@nginxone src]# ./xampp-linux-x64-5.6.14-4-installer.run

安装过程显示:

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

Welcome to the XAMPP Setup Wizard.

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

Select the components you want to install; clear the components you do not want

to install. Click Next when you are ready to continue.

XAMPP Core Files : Y (Cannot be edited)

XAMPP Developer Files [Y/n] :y

Is the selection above correct? [Y/n]: y

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

Installation Directory

XAMPP will be installed to /opt/lampp

Press [Enter] to continue :

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

Setup is now ready to begin installing XAMPP on your computer.

Do you want to continue? [Y/n]: y

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

Please wait while Setup installs XAMPP on your computer.

 Installing

 0% ______________ 50% ______________ 100%

 #########################################

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

Setup has finished installing XAMPP on your computer.

Launch XAMPP [Y/n]: y

五、安装后的文件在 /opt/lamp

六、启动xampp:

[root@nginxone lampp]# /opt/lampp/xampp start

             Starting XAMPP for Linux 5.6.14-4...
         XAMPP: Starting Apache...already running.
         XAMPP: Starting MySQL...ok.
        XAMPP: Starting ProFTPD...ok.

七、停止xampp:

[root@nginxone lampp]# /opt/lampp/xampp stop

         Stopping XAMPP for Linux 5.6.14-4...
         XAMPP: Stopping Apache...ok.
         XAMPP: Stopping MySQL...ok.
         XAMPP: Stopping ProFTPD...ok.

八、添加开机启动:

温习一下ln命令,使用方式:

#ln [option] source dist

#ln –s /opt/lampp/xampp /etc/rc.d/init.d/xampp

九、如果执行完上面这条还不能开机自动启动,再执行下面3条语句。

#chkconfig –add xampp

#chkconfig –list | grep xampp

#chkconfig –level 3 xampp on


xampp的界面:

(教程)CentOS6.4下安装xampp - CentOS - Linux合Oracle学习之路

 

十、卸载xampp

     #/opt/lampp/xampp stop

    #rm -rf /opt/lampp


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

在另一台主机中访问http://ip地址

配置

/opt/lampp/apache2/conf

httpd.conf文件的原来内容如下:

Alias /bitnami/ "/opt/lampp/apache2/htdocs/"
Alias /bitnami "/opt/lampp/apache2/htdocs"

<Directory "/opt/lampp/apache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

也可以配置,见本博主的另一篇博客

http://blog.csdn.net/u011630575/article/details/50088351


怎么配置都没有成功,在另一台主机上都没登录成功。但配置好了Xmanager,就可以在另一台机器上访问了,不知道为什么?

另一篇博客地址:

http://blog.csdn.net/u011630575/article/details/50100097


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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值