zoukankan      html  css  js  c++  java
  • linux应用之xampp集成环境的安装及配置(centos)

    1.xampp集成环境的下载

      在xampp的官网上选择对应系统的版本进行下载,官网地址:https://www.apachefriends.org/zh_cn/index.html

      #wget https://downloadsapachefriends.global.ssl.fastly.net/xampp-files/5.6.30/xampp-linux-x64-5.6.30-1-installer.run?from_af=true

      #ls -al ./xampp-linux-x64-5.6.30-1-installer.run

    2.xampp的安装

      #赋执行权限  

      #chmod 755 xampp-linux-x64-5.6.30-1-installer.run

      #开始安装,默认装在/opt目录下 

      #./xampp-linux-x64-5.6.30-1-installer.run

      #尝试启动xampp

      #/opt/lampp/lampp start

      出现如下消息表示成功:

        Starting XAMPP for Linux 5.6.30-1...
        XAMPP: Starting Apache...already running.
        XAMPP: Starting MySQL...already running.
        XAMPP: Starting ProFTPD...ok.

      #尝试停止xampp

      #/opt/lampp/lampp stop

      #可以为lampp创建软链接,也可以自己在/etc/init.d中加入相应的启动脚本,具体的根据需要选择

      #ln -s /opt/lampp/lampp /usr/local/bin/lampp

      或

      #vi /etc/init.d/lampp

      #chmod 755 /etc/init.d/lampp

      #chkconfig lampp on  

      #service lampp restart

      脚本内容可以参考vsftpd的启动脚本。

    3.配置

      #在默认的安装过程中,xampp所有均是没有密码的,为了安全,我们应该为xampp设置密码。具体的设置过程可根据提示操作。

      #/opt/lampp/lampp security

    4.常见问题以及解决办法

      (1)安装完成后,很多时候用locahost来访问时,是没有问题的,但是同一局域网里其它主机用域名访问时,常常不能访问,这里情况大概分为两种: 
          a. xampp的配置文件:/opt/lampp/etc/extra/httpd-xampp.conf中将以下内容屏蔽

    <LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">

    #Require local

    ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var

          b. 如果按照以上修改后,还是不能访问,则可能是防火墙把80端口给干掉了,要么把防火墙关闭,要么配置一下80端口允许访问。

    若存在端口冲突,就修改端口:

    vi  /etc/httpd/conf/httpd.conf

    Listen的值改为8080或其他

    ServerName的值也改为8080或其他

     修改/opt/lampp/etc/extra/httpd-ssl.conf

    Listen的值改为8080或其他

    ServerName的值也改为8080或其他

  • 相关阅读:
    004-spring cache-声明性的基于XML的缓存
    003-spring cache-JCache (JSR-107) annotations
    002-spring cache 基于注解的缓存-02详细-Cacheable 、CachePut、CacheEvict、Caching、CacheConfig、EnableCaching、自定义
    002-spring cache 基于注解的缓存-01-关键注解概述、spel、缓存Key 与 缓存解析器
    001-springboot cache 简介、基础使用
    tools-eclipse-004-UML图安装
    001-Spring的设计理念和整体架构
    java-信息安全(十八)java加密解密,签名等总结
    005-java的Annotation
    002-原始jpa以及基本加载过程,基本sql使用
  • 原文地址:https://www.cnblogs.com/tankblog/p/6877682.html
Copyright © 2011-2022 走看看