centos7 station lamp

Reference: https://blog.51cto.com/hwdelinux/2125001?from=groupmessage

  https://www.cnblogs.com/yhongji/p/9783065.html

1. Installation mysql + php

  First, in order to build a stable lamp practice environment to ensure that your virtual machines can be networked, here we use yum to install, it can help us to solve their own software dependencies. I also added a postgresql database back if not required parameters can be removed and postgresql the command follows

  yum -y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-devel

2. Installation MariaDB

 By yum install on the line. Simple and quick to install mariadb-server, the default installation dependent mariadb, one server and one client.

[root@mini ~]# yum install mariadb-server

  After the installation is first necessary to MariaDB service is turned on and set to boot

[root @ mini ~] # systemctl start mariadb # open service 
[root @ mini ~] # systemctl enable mariadb # is set to boot from the start Services

3. Turn off the firewall

  systemctl stop firewalld

  systemctl disable firewalld

4. Start apache service

:( remember the following command to start the service by the root user)

       启动:systemctl start httpd

5. To copy the download site to linux / var / www / html / decompression

  Extracting file uploads into the directory, all files to move inside / var / www / html /

 

 Log ip verify

Guess you like

Origin www.cnblogs.com/yytzj/p/11670123.html