In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Detailed description of the construction process of LAMP:
(1) install the package first, as shown below
CentOS 7:
Modules: package, httpd, php, php-mysql, mariadb-server
FastCGI: package, httpd, php-fpm, php-mysql, mariadb-server
Install the command yum install-y + package used
CentOS 6:
Packages httpd, php, php-mysql, mysql-server
(2) then start its server
The command for CentOS 7 to start the service is systemctl start httpd.service
Systemctl reload httpd.service (reload service command)
Systemctl start mariadb.service (service command to start the database)
The command for CentOS6 to start no service is service httpd start (start its httpd service)
Service httpd reload (reload service command)
Service mysqld start (start the database)
(3) check whether the port of the service is enabled.
Ss-tnl
Nestal-tan
Ss-tunlp
Netstal-tanl et al.
Note: the default port of http is 80; the default port of database is 3306 dns, and the default port number is 53
(4) configure the database
Enter database mode using the command mysql
GRANT ALL ON. * rootdb TO root@'192.168.1.%' IDENTIFIED BY 'root'; (create an authorized network segment)
Create a database CREATE DATABASE rootdb
Execute effective permission FLUSH PRIVILEGES
View database SHOW DATABASES
(5) configure / etc/my.cnf
[mysqld]
Skip_name_resolve=ON can add this record without parsing based on hostname (Note: CentOS6 cannot be added, 7 can be added, 6 can be added and the database will be restarted, startup will fail)
(6) check the mechanism of MPM
[root@mageedu conf.modules.d] # vim / etc/httpd/conf.modules.d/00-mpm.conf
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so (this line is enabled)
(7) upload its wordpress to the linux system and decompress it.
Tar-xf + the path to which the package file to be extracted +-C / var/www/html is extracted
(8) cd / wordpress
[root@mageedu wordpress] # cp wp-config-sample.php wp-config.php renames the sample file and then edits
(9) full restart of the service systemctl reload httpd.service systemctl restart mariadb.service will take effect.
(10) use the WINDOWS host for testing, and enter the IP address of the linux host. The test is as follows: the test is successful.
Note: the database can be tested to see if it can be linked, for example, mysql-uroot-h227.0.0.1-p default local test
[root@mageedu wordpress] # mysql-uroot-h227.0.0.1-p
Enter password:
Welcome to the MariaDB monitor. Commands end with; or\ g.
Your MariaDB connection id is 5
Server version: 5.5.47-MariaDB MariaDB Server
Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or'\ h' for help. Type'\ c'to clear the current input statement.
MariaDB [(none)] > has logged in to the database and can log in normally.
All right, that's all for today. Remember, you have to make progress every day. Follow Brother Ma all the way without looking back.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.