Tencent cloud technology community – Jane book home page continues to present cloud computing technology articles, welcome your attention!
Some time ago, I moved my blog to Tencent Cloud. I feel very good. I am no longer afraid of slow website opening, no longer afraid of being DDOS, no longer afraid of service providers running away… A friend asked me how I do blog on Tencent cloud, specifically for him to write a guide, I hope to be helpful to everyone. Of course blog is easy to build, difficult to insist on updating ah!!
Register Tencent Cloud
Register Tencent cloud as long as you have a QQ number, visit Tencent cloud free experience pavilion, click cloud server – entry – free experience
You may be prompted to register as a Tencent cloud user first
Sign up, new users will send you a bunch of packages, hehe
Get a server
Receive the gift package, return to Tencent cloud free experience pavilion, click free experience back to enter the model selection
Choose the city closest to you
Select CentOS 7.2 64-bit
You need to pass a beginner’s question and answer or personal certification to get a free experience
Congratulations, you can experience for free, click experience now
Enter the server list, while the server is still initializing, wait
Refresh the page, OK!!
Server Configuration
Once you have the server, you need to log in to the server and configure it. That’s the point.
Where’s the server password?
First of all, please check the password of your pull server. There’s a code in this line
Open it and see the important content in my red box. Guess what my password is 😛
Logging In to the Server
With a password, Bitvise SSH Client is required to access the server. Download and install
Download: www.bitvise.com/ssh-client-…
Install, open, fill in the IP, port, user name and password according to the following figure, and log in
If the login succeeds, the terminal will display something like this
Upgrade the software in the service to the latest version with the following command
yum update -y
Copy the code
Install OneinStack
OneinStack is a one-click installer that makes it easy to install Nginx, MySQL, and PHP programs that make WordPress work
Run the following command step by step on the terminal
Yum -y install wget screen curl python # for CentOS/Redhat wget http://mirrors.linuxeye.com/oneinstack-full.tar.gz # include source code, Tar XZF oneinstack-full.tar.gz CD oneinstack # Conf file screen -s oneinstack # If the network is down, you can run 'screen -r oneinstack' to reconnect the installation window./install.sh # Do not run sh install.sh or bash install.shCopy the code
Then select the relevant software according to the picture below
- Note: please record your database password, it will be used later!!
- Note: please record your database password, it will be used later!!
- Note: please record your database password, it will be used later!!
After the installation is successful, open your public IP address in your browser and you will see the success page
Bind domain names to directories
If you have a domain name, you can use the./vhost.sh command to bind the domain name to a directory
The installation of WordPress
WordPress is the blog program, he is the world’s most popular blog program, easy to install, simple to use.
Download WordPress
Go to your domain directory
cd /data/wwwroot/www.youdomain.com/
Copy the code
Or the OneinStack default directory
cd /data/wwwroot/default/
Copy the code
Download WordPress
Wget HTTP: / / https://cn.wordpress.org/wordpress-4.7-zh_CN.tar.gzCopy the code
Unpack the
The tar XZF - 4.7 - wordpress zh_CN. Tar. GzCopy the code
Set up a database
Open your public IP address in a browser, click phpMyAdmin, and log in to the database with the previously recorded root password
Click New to create a New database
- Database name wordpress
- Character set utF8MB4_unicoDE_CI
The installation of WordPress
Open your public IP address in a browser and add /wordprss access after the address, for example
http://19.99.67.78/wordpress/
Copy the code
The following interface will be displayed after the visit, click start now!
The wp-config.php file cannot be created. In this case, select copy
Enter the wordpress directory on the terminal. The default directory is used as an example
cd /data/wwwroot/default/wordpress/
Copy the code
Then create wp-config.php with vi
vi wp-config.php
Copy the code
In VI, press the letter I to go into edit mode and copy into the previous stickboard
Then press ESC and enter :wq to save and exit
Then go back to the browser, enter the next step, set the wordpress username and password, please save it!!
The installation will be successful, prompting you to log in
Login successful!! This is the backend of wordpress
So that’s wordpress installed
Fastest wordpress installation
In addition to step by step installation like above, you can also select the blogging platform directly in the service marketplace when creating a new server, so that there is no complicated operation like the previous one.
Choose here from the service market options
Select the WordPress blogging platform in the site template
Ok, now is how to stick to the blog writing things oh ~~~
Use Tencent Cloud to build a personal blog
This article has been published by Tencent Cloud technology community authorized by the author. Please indicate the source of the article when reprinted. For more cloud computing technology dry goods, please go to Tencent cloud technology community