Last update at :2024-06-03,Edit by888u
Hostwinds website building tutorial sharing. Because I purchased a Hostwinds VPS before the host evaluation and kept it idle, I decided to take it out and put it to good use today. By the way, I will share here a tutorial on using Hostwinds to build a website. I have always chosen to use LNMP for host evaluation. I used LAMP in the early days, but later I found that Apache seems to be inferior to NGINX in handling concurrency. Of course, it may be that I don't know how to optimize. Anyway, I later switched to NGINX and still use it today. Let me first share the first step of the Hostwinds website building tutorial, one-click deployment of LNMP website building environment.
1. Download and install LNMP
Hostwinds official website address: https://www.hostwinds.com
The current host evaluation uses the Ubuntu 18.04 system, and it is recommended that we also use it. If you need to reinstall, just log in to Hostwinds and reinstall. Then we log in to Hostwinds' SSH. After logging in, first create a new screen window:
screen -S lnmp
Then enter the following command to start the installation:
wget http://soft.vpser.net/lnmp/lnmp1.7.tar.gz -cO lnmp1.7.tar.gz && tar zxf lnmp1.7.tar.gz && cd lnmp1.7 && ./install.sh lnmp
The main thing is to select some versions of MySQL and PHP, and enter the password for the MySQL database. It is very simple. I believe everyone can complete the installation.
Wait patiently for half an hour to an hour. If the VPS performance is poor, it may take more than an hour, and wait for the prompt that the installation is complete.
2. Check whether the installation is successful
After the installation is completed, we access the IP address of our VPS. If the following interface appears, the installation is successful.
After that we can create a new website and other operations. If you do not see this interface, you need to check whether there is a problem with the installation process.
3. Some necessary safety measures
It is recommended that we enter the following directory:
cd /home/wwwroot/default
Rename the phpmyadmin folder to another name and delete all other files. This will be safer. Others who directly access our IP address will not be able to see the phpmyadmin address, nor will they be able to see information such as probes.
In addition, the MySQL password should be as complex as possible. Of course, the root password should also be as complex as possible. These are basic security common sense.
If possible, you can also change the default SSH port.
In subsequent articles, we will introduce how to start adding websites in the LNMP environment on Hostwinds VPS.
Recommended site searches: virtual host rental, foreign server free US hosting, website space registration-free, free virtual space, US server rental, Korean server rental, website domain name query system, US host ranking, registration website,
发表评论