【问题标题】:Installing lampp on ubuntu 14.04 LTS在 ubuntu 14.04 LTS 上安装 Lampp
【发布时间】:2015-08-30 04:26:26
【问题描述】:

我正在尝试在 ubuntu 14.04 LTS 上安装灯。安装后,我做到了

sudo su
/opt/lampp/lampp start

它给了我这个错误:

正在为 Linux 5.6.8-0 启动 XAMPP...XAMPP:启动 Apache...失败。 XAMPP:另一个 Web 服务器已经在运行。 XAMPP:开始 mySQL...好的。

我如何让 Apache 工作?另一个 Web 服务器可能已经在运行?

【问题讨论】:

  • 以 root 身份运行 netstat -tlpn 以查看正在运行的服务器,并在 Web 服务器端口上查找某些内容(例如,80 用于 http,443 用于 https)。但请注意,使用 /opt/ 代替发行包的支持很差。

标签: mysql apache ubuntu lamp lampp


【解决方案1】:

~$ sudo /etc/init.d/apache2 停止

Stopping web server apache2 * 

然后

$ sudo /opt/lampp/lampp 启动

【讨论】:

    【解决方案2】:
    sidra@sidra-7G-Series:~$ sudo /opt/lampp/lampp start
    

    正在为 Linux 5.6.8-0 启动 XAMPP...

    XAMPP:启动 Apache...失败。

    XAMPP:另一个 Web 服务器已经在运行。

    XAMPP:正在启动 MySQL...好的。

    XAMPP:正在启动 ProFTPD...已经在运行。

    sidra@sidra-7G-Series:~$ sudo /etc/init.d/apache2 stop

    • 停止网络服务器 阿帕奇2 * sidra@sidra-7G-系列:~$ sudo /opt/lampp/lampp start

    正在为 Linux 5.6.8-0 启动 XAMPP...

    XAMPP:正在启动 Apache...好的。

    XAMPP:正在启动 MySQL...好的。

    XAMPP:正在启动 ProFTPD...已经在运行。

    【讨论】:

    • "sidra@sidra-7G-Series:~$ sudo /etc/init.d/apache2 停止停止 web 服务器 apache2 * sidra@sidra-7G-Series:~$ sudo /opt/lampp/灯启动
    • 是的,我得到以下输出正在启动 XAMPP for Linux 5.6.8-0... XAMPP: 启动 Apache...ok。 XAMPP:启动 MySQL ......好的。 XAMPP:正在启动 ProFTPD...已经在运行。但是在xampp窗口中我仍然看到mysql旁边的红圈。 (停在旁边)
    【解决方案3】:

    您已经在端口 80 上运行了一个 Web 服务器。我看到了三个可行的选择:

    1. XAMPP's 版本的 Apache 移至其他端口。
    2. httpd 在端口80 上运行的任何内容移动到另一个端口(或将其删除)
    3. 只需安装 lamp-server^(一个真正的生产堆栈)并停止使用 XAMPP(它实际上只是 Windows 开发人员的玩具)

    【讨论】:

      猜你喜欢
      • 2016-06-18
      • 2015-05-31
      • 2015-09-25
      • 2016-02-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-01-28
      • 1970-01-01
      相关资源
      最近更新 更多