How to build a LAMP environment using the CentOS command line

藏色散人
Release: 2021-12-30 17:14:36
forward
1914 people have browsed it

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'
Copy after login

2. Install Apache service

yum install httpd -y

service httpd start
Copy after login

3. Install PHP

yum install php php-mysql -y
Copy after login

4. Check whether the installation is Success

<?php  phpinfo(); ?>

service httpd restart
Copy after login

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!

Related labels:
source:segmentfault.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!