In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. Purchase a virtual host
That is, to buy a server, I bought it from a Tencent Cloud agent and spent more than 300 yuan.
two。 Purchase domain name and add resolution
I also bought the cheaper .xyz suffix from Tencent Cloud, which cost 19 yuan.
After purchasing a domain name, you can directly add domain name resolution to the ip corresponding to the virtual host purchased in step 1 in Tencent Cloud backend-Domain name Management.
3. Configure the php runtime environment in the virtual host
My environment is centOS7.2 + php7 + Apache + MySQL
After the configuration is completed, create a new blog database, and select utf8 for database coding.
4. Download and configure the WordPress code
Go to the WordPress official website to download the code package: https://cn.wordpress.org/download/
Click to download if it doesn't work, it is recommended to change the browser to download.
Decompress it after downloading. After decompression, the file is called wordpress. I rename it to wpblog:
Copy a copy of the configuration file wp-config-sample.php to the same directory and rename it wp-config.php.
Open the configuration file using any IDE of editable .php to modify the following configuration (authentication keys and salts can be automatically generated through a link provided by WP):
/ * * name of WordPress database * / define ('DB_NAME',' wpblog'); / * * MySQL database user name * / define ('DB_USER',' root'); / * * MySQL database password * / define ('DB_PASSWORD',' yourDbPasswordHere'); / * MySQL host * / define ('DB_HOST',' 127.0.0.1') / * default text code * / define ('DB_CHARSET',' utf8') when creating a data table; / * authentication key and salt. * * modify to any unique string! * or directly access {@ link https://api.wordpress.org/secret-key/1.1/salt/ * WordPress.org key generation service} * any modification will invalidate all cookies and all users will have to log in again. * * @ since 2.6.0 * / / define ('AUTH_KEY',' put your unique phrase here'); / / define ('SECURE_AUTH_KEY',' put your unique phrase here'); / / define ('LOGGED_IN_KEY',' put your unique phrase here'); / / define ('NONCE_KEY',' put your unique phrase here'); / / define ('AUTH_SALT',' put your unique phrase here') / / define ('SECURE_AUTH_SALT',' put your unique phrase here'); / / define ('LOGGED_IN_SALT',' put your unique phrase here'); / / define ('NONCE_SALT',' put your unique phrase here'); define ('AUTH_KEY',') +; | Ca9bd) = cjU-HI (;). [# B {YQ+CD1rpIRRvxU | pz]') Define ('SECURE_AUTH_KEY',' [MX3 | T&RX8 {1 | ^ R (8@ooJgi*3JsLgeapg2k@~eniKT | 2awVC ^ 0Kij = R%S:D | K = ^ * MlZZ AdTwns {% quhEeH&'); define ('LOGGED_IN_SALT',' B | ClHs99 | HFI f {Gu*H$ (/ tY > [ln,U0j--7 $@ {&} bL,Yxp%F [(1PN@] [f6 | a5cadnn')); define ('NONCE_SALT',' Tn) C ^ 7ZN]! omphany Xox} rA.`BDrZF1KYSqrbuWtD6. = 4 debug s+nV (t ^ VUegX @'); / * developer-only: WordPress debug mode. * * changing this value to true,WordPress will display all tips for development. * plug-in developers are strongly recommended to enable WP_DEBUG in the development environment. * * for additional information that can be used for debugging, visit Codex. * * @ link https://codex.wordpress.org/Debugging_in_WordPress * / / * it is recommended to open debug mode * / define ('WP_DEBUG', true)
After saving, proceed to the next step.
5. Upload code to the server and configure the user
To upload the modified code to the server, I use the Deployment tool that comes with PhpStorm to upload the code. I can also use other ftp tools such as filezila to upload the code. It is best to create a new directory under the web root directory (var/www/html), such as wpblog, and then upload all the codes to this directory, as follows:
Arriving at this step, the construction of the station has basically been completed.
All that is left is to configure the user (administrator) information:
Visit the site directory in the browser: http://www.example.com/wpblog, will go to the site configuration page for the first visit, and add the site name, mailbox, user name and password to complete the establishment of the site.
Visit the directory again: http://www.example.com/wpblog to enter the corresponding blog site, the blog background address is: http://www.example.com/wpblog/wp-admin.
Attached is my "Zhang Lang Chong blog". Friends who have related questions can ask the blogger at any time.
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.