In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Definition of LAMP:
Lamp: refers to the architecture composed of Linux (operating system), Apache (HTTP server), MySQL/MariaDB (database software), and PHP/perl/python (j scripting language), which is generally used to establish web application platform.
Environment: local system operation, no firewall influence.
System: CentOS7.0
Ip:172.25.254.3
[root@localhost /] cat / etc/yum.repo/server.repo-- configure yum repository (local)
[base]
Name=server
Baseurl= file:///mnt
Eabled=1
Gpgcheck=0
[root@localhost /] mount / dev/cdrom / mnt
[root@localhost /] yum-y install php php-mysql httpd mariadb-server-- install the required service installation package
[root@localhost /] cat / var/www/html/index.php-- configure the home page php file
[root@localhost /] systemctl restart httpd; systemctl enable httpd; systemctl restart mariadb; systemctl enable mariadb-restart the service and guarantee its permanence
[root@localhost /] firefox localhost
[root@localhost /] mysql
MariaDB [(none)] > GRANT ALL ON testdb.* TO testuser@'%' IDENTIFIED BY 'testpass'
-allow testuser users to log in in any form
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)] > FLUSH PRIVILEGES;-effective immediately
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)] > exit
Bye
[root@localhost /] # mysql-u testuser-h 172.25.254.3-p-- Test testuser login to testdb database
Enter password:testpass
Welcome to the MariaDB monitor. Commands end with; or\ g.
Your MariaDB connection id is 3
Server version: 5.5.44-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)] > exit
Bye
[root@localhost /] vim / var/www/html/index.php
[root@localhost /] setenforce 0-- close selinux
[root@localhost /] firefox localhost-if the test page shows "OK", the configuration is successful
Upload blog wordpress-3.3.1-zh_CN.zip to root directory
[root@localhost /] unzip wordpress-3.3.1-zh_CN.zip-- decompress the developed blog package
[root@localhost /] # ls
Bin etc lib64 opt run sys var
Boot home media proc sbin tmp wordpress
Dev lib mnt root srv usr wordpress-3.3.1-zh_CN.zip
[root@localhost /] # mv wordpress / var/www/html/-move to / var/ww/html for web access
[root@localhost /] # cd / var/www/html/
[root@localhost html] # cd wordpress/
[root@localhost wordpress] # ls
Index.php wp-config-sample.php wp-pass.php
License.txt wp-content wp-register.php
Readme.html wp-cron.php wp-settings.php
Wp-activate.php wp-includes wp-signup.php
Wp-admin wp-links-opml.php wp-trackback.php
Wp-app.php wp-load.php xmlrpc.php
Wp-blog-header.php wp-login.php
Wp-comments-post.php wp-mail.php
[root@localhost wordpress] # cp wp-config-sample.php wp-config-sample.php.back-backup
[root@localhost wordpress] # mv wp-config-sample.php wp-config.php-- renamed to configuration file name
[root@localhost wordpress] # mysql
Welcome to the MariaDB monitor. Commands end with; or\ g.
Your MariaDB connection id is 10
Server version: 5.5.44-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)] > GRANT ALL ON wpdb.* TO wpuser@'%' IDENTIFIED BY 'wppass'
Query OK, 0 rows affected (0.02 sec)
MariaDB [(none)] > create database wpdb
Query OK, 1 row affected (0.02 sec)
MariaDB [(none)] > FLUSH PRIVILEGES
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)] > exit
Bye
[root@localhost wordpress] # vim wp-config.php-changes the profile, and the blog is associated with the database
/ / * * MySQL settings-specific information comes from the host you are using * * / /
/ * * name of WordPress database * /
Define ('DB_NAME',' wpdb')
/ * * MySQL database user name * /
Define ('DB_USER',' wpuser')
/ * * MySQL database password * /
Define ('DB_PASSWORD',' wppass')
/ * * MySQL host * /
Define ('DB_HOST',' 172.25.254.3')
Firefox accesses the host: localhost/wordpress, install wordpress as required
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.