CentOS下安装xampp
  EtUHSEjq3GlD 2023年11月02日 47 0


        准备工作:

                 查看系统版本

                    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:

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


         Stopping XAMPP for Linux 5.6.14-4...

         XAMPP: Stopping Apache...ok.

         XAMPP: Stopping MySQL...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的界面:

十、卸载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>

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月08日 0

暂无评论

推荐阅读
  wpWn7yzs0oKF   2023年11月13日   32   0   0 javaapacheHDFS
EtUHSEjq3GlD