mint debian
LAMP stack is a popular term in the IT world. It is used to express multiple application packages to server PHP applications. Here is the formula Linux+Apache+MySQL+PHP=LAMP . LAMP stack can be created by installing these components one by one. In this tutorial, we assume that we have already installed the Linux distribution like Ubuntu, Debian, CentOS, Mint.
LAMP堆栈在IT世界中是一个流行术语。 它用于向服务器PHP应用程序表达多个应用程序包。 这是公式Linux + Apache + MySQL + PHP = LAMP。 可以通过一一安装这些组件来创建LAMP堆栈。 在本教程中,我们假设我们已经安装了Linux发行版,如Ubuntu,Debian,CentOS和Mint。
安装Apache或Httpd (Installing Apache or Httpd)
We will start by installing the Apache webserver. Apache is the most popular web server on the internet. Apache has a different name in rpm-based distributions which are httpd.
我们将从安装Apache Web服务器开始。 Apache是Internet上最流行的Web服务器。 在基于rpm的httpd发行版中,Apache具有不同的名称。
为Debian,Ubuntu和Mint安装Apache (Install Apache for Debian, Ubuntu, Mint)
We will use apt or interchangeble apt-get command for apache2 package installation.
我们将使用apt或互换的apt-get命令来apache2软件包。
$ sudo apt install apache2
为CentOS,Fedora,RHEL安装Apache (Install Apache for CentOS, Fedora, RHEL)
We will use dnf or yum command for httpd package installation. httpd is the name of Apache in rpm based distributions.
我们将使用dnf或yum命令安装httpd软件包。 httpd是基于rpm的发行版中Apache的名称。
$ sudo dnf install httpd
安装MySQL或MariaDB (Installing MySQL or MariaDB)
MySQL or with its opensource version MariaDB is a database component of the LAMP. We can install it below.
MySQL或其开源版本MariaDB是LAMP的数据库组件。 我们可以在下面安装它。
为Debian,Ubuntu和Mint安装MySQL (Install MySQL for Debian, Ubuntu, Mint)
We will install MySQL with the following command.
我们将使用以下命令安装MySQL。
$ sudo yum install mysql-server
为CentOS,Fedora,RHEL安装MySQL (Install MySQL for CentOS, Fedora, RHEL)
We will install mysql-server package.
我们将安装mysql-server软件包。
$ sudo yum install mysql-server
安装PHP (Installing PHP)
PHP is the programming part of the LAMP stack. Applications, CMS will run with PHP interpreter .
PHP是LAMP堆栈的编程部分。 在应用程序中,CMS将与PHP解释器一起运行。
为Debian,Ubuntu和Mint安装MySQL (Install MySQL for Debian, Ubuntu, Mint)
We will install PHP with a simple command.
我们将使用一个简单的命令安装PHP。
$ sudo apt install php
为CentOS,Fedora,RHEL安装MySQL (Install MySQL for CentOS, Fedora, RHEL)
We will install PHP package like below.
我们将如下安装PHP软件包。
$ sudo yum install php
配置LAMP堆栈 (Configuring LAMP Stack)
Now we have installed all components of the LAMP Stack. We can
现在,我们已经安装了LAMP Stack的所有组件。 我们可以
启动Apache Web服务器 (Start Apache Web Server)
We will start Apache web server explicitly by running following service control command systemctl .
我们将通过运行以下服务控制命令systemctl显式启动Apache Web服务器。
Debian,Ubuntu,薄荷 (Debian, Ubuntu, Mint)
$ sudo systemctl start httpd
CentOS,Fedora,RHEL (CentOS, Fedora, RHEL)
$ sudo systemctl start httpd
检查Apache Web服务器状态 (Check Apache Web Server Status)
We can check Apache web server service status with the following command
我们可以使用以下命令检查Apache Web服务器服务状态
Debian,Ubuntu,薄荷(Debian, Ubuntu, Mint)
$ sudo systemctl status httpd
CentOS,Fedora,RHEL (CentOS, Fedora, RHEL)
$ systemctl status httpd
翻译自: https://www.poftut.com/how-to-install-lamp-stack-on-linux-ubuntu-debianmintfedora/
mint debian
本文详细指导如何在Mint Debian系统上安装Apache、MySQL和PHP,构建流行的LAMP堆栈,包括apt与yum命令的选择,以及服务器的启动和状态检查,适合初学者和系统管理员参考。

1370

被折叠的 条评论
为什么被折叠?



