Home >Operation and Maintenance >CentOS >How to build a LAMP environment using the CentOS command line

How to build a LAMP environment using the CentOS command line

藏色散人
藏色散人forward
2021-12-29 16:55:402083browse

The following column centos tutorial will introduce to you how to build a LAMP environment using the CentOS command line pagoda. I hope it will be helpful to friends in need!

It is recommended to try Tencent Cloud first (it’s free anyway)

Command line installation

1. Build mysql database

yum install mysql-server -y

service mysqld restart

/usr/bin/mysqladmin -u root password 'AAAAAA'

2. Install Apache service

yum install httpd -y

service httpd start

3. Install PHP

yum install php php-mysql -y

4. Check whether the installation is Success

<?php  phpinfo(); ?>

service httpd restart

How to build a LAMP environment using the CentOS command line

How to build a LAMP environment using the CentOS command line

How to build a LAMP environment using the CentOS command line

How to build a LAMP environment using the CentOS command line

##Easy points

How to build a LAMP environment using the CentOS command line

Pagoda installation

If it’s too troublesome, use Pagoda, just a command line thing.

The above is the detailed content of How to build a LAMP environment using the CentOS command line. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete