Time is like water, the years are passing by. It's been 8 months since the last time the blog was shut down. For a long time in the past, due to the work of the reasons, a variety of labor, lack of energy. A few months ago I also left the post where I had been ready to deliver my life, the place where I wanted to live, and started my new life again. Since it's a start, how can you not re-open your blog? This time, I'm going to keep the blog going, no more.
This time, you can open the blog when the environment has been completely different, formerly a variety of virtual space, is now a variety of cloud servers. Since the environment is different. So I'm going to try something different this time, starting with the CentOS 7 system and building a blog that is completely controlled by WordPress.
Needless to say, here is to share my experience of building WordPress. Although this is in the eyes of some technical God, but I believe that for more beginners, my share is helpful.
First of all, most cloud servers can choose system mirroring, so I won't say much about how to install CentOS 7 here. And originally it is also very simple, is to download an ISO, and then all the way to click on the "Next" button on the line, midway apart from the password, there is almost no need to set.
After the system is ready. The first time I think of is to use Bitnami to provide one-click installation package, Bitnami provides a one-click installation package integrated server, database and WordPress, can be said to be a very suitable choice. (One-click installation package: Tap here)
After the time of 5/7 cigarettes, the installation package is finished downloading. "It seems that the family has just upgraded to 100M broadband is good value for money", I looked at the rest of the cigarettes in the hands of a smile, and then pinch out of it, began to scratch the scalp, because I do not know how to upload the local installation package to the server.
Used to the Windows system used to transfer files between the server and the local computer, either through the Remote Desktop, or through the configuration of FTP, in the mouse click the sound, it is easy to fix everything, but now I am puzzled, facing the CentOS command line interface, I don't even know how to do it. Install the software.
As a veteran it practitioner, using a search engine to solve problems is a basic skill, so I instinctively opened Baidu (everyone do not busy laughing at me, because in the wall Google is a luxury thing, redundant for luxury things, to do less), open Baidu, search "CentOS7 installation configuration FTP "1,690,000 search results came out, and I was happy for half an hour in the face of such a huge search result, and then there was only anger left."
In this half hour, I looked up the contents of the previous 6 pages, and found that most of them were exactly the same, and it was obvious that this was the result of copy-pasting. And then in these results, I can responsibly say: No one's content is right! In these results can be broadly divided into three categories:
- Less than a few types: most of this kind of article is only about installation, not speaking configuration.
- Exaggeration type: This kind of article always makes simple to display own technical foundation, lets the beginner foggy.
- Trickery type: This kind of article most abominable, obviously is based on CentOS6 installs the FTP, but claims is is based on CentOS7, these people not to CentOS7 and CentOS6 's default firewall configuration command is different?
After tossing for half an hour, I finally opened my VPN magic, signed in to Google, "CentOS7 install FTP" As the keyword, search out 311,000 results, this number compared to the amount of Baidu's day, almost a lot less. But I only looked at the first and second search results and solved my problem. I really am not black Baidu, but the actual result is so, you can follow my search keywords, in Baidu and Google search comparison. Thanks to the first two of Google results, the two results are:
- http://www.liquidweb.com/kb/how-to-install-and-configure-vsftpd-on-centos-7/
- http://www.unixmen.com/install-configure-ftp-server-centos-7/
The process for installing and configuring FTP is as follows:
1. Complete the installation of FTP via the following instructions
yum -y install vsftpd ftp
2. Configure FTP with the following instructions
vi /etc/vsftpd/vsftpd.conf
However, this is not necessary, usually by setting Anonymous_enable=no to prevent anonymous logons
3. Open FTP with the following command
systemctl enable vsftpd
systemctl start vsftpd
4. Open the firewall through the following
firewall-cmd --permanent --add-port=21/tcp
firewall-cmd --permanent --add-service=ftp
5. Restart the firewall with the following command
firewall-cmd --reload
With the above 5 steps, you can complete the basic FTP installation and configuration. Installing and configuring FTP based on Google search results takes less than 5 minutes before and after the time. So, as an IT practitioner, be sure to embrace Google and reject Baidu. For Baidu is a toy good, just can take to play, only!
After you install FTP, you can upload files via the FTP client. I chose the FileZilla Client as my tool. Choose a good tool, a moment, in Google search for "FileZilla transfer", and then found a very bad thing, originally to Linux system files do not need FTP, to the Linux system files do not need FTP, to Linux System files do not require FTP (important things to say three times). You only need to open the SSHD service. As shown, select the protocol as SFTP and the login type to ask for the password:
Now many Linux systems have installed and turned on the sshd system, and if it is found not installed and open, it is easy to install.
1. First set Permitrootlogin to No,permitemptypasswords set to no with the following instruction, Passwordauthentication set to Yes
vi /etc/ssh/sshd_config
2. Restart sshd with the following command
systemctl restart sshd
3. Installing the OpenSSH Client
yum -y install openssh-clients
Through the above operation, the CentOS system is ready, then the next class is to install WordPress dependent environment, such as servers, databases and so on. and install and configure WordPress, in the next blog, I will continue to share my experience. Thank you for your support.
Welcome reprint, reproduced at the same time please respect the copyright, attached to the text link: click here
==============================
For more information, please see my blog: Lin Yanjun's blog
==============================
The experience of building WordPress in CentOS 7 environment (top)