How to purchase and initially build a server

How to purchase and initially build a server

I haven't worked with servers for a while. Now that I don't have too much to do, I'll go to Mobile Works and buy a foreign server (why should I buy a foreign server? It's cheaper and can be FQ, you know ( • ̀ω•́ )✧). I can pay with Alipay. By the way, I'll record the purchase and initial construction process for future use.

1. Purchase a server

Enter the official website of Banwagong https://bwh88.net/

Select the server type you want to purchase. I chose the one that costs $49.99 per year.

Click Order, enter the purchase details page, select the service address, I chose Los Angeles, and then Add to Cart

Then proceed to purchase, enter the discount code: BWH26FXH3HIQ- 6.25% (this is the lowest at present) and click Checkout in the lower right corner to purchase

A registration form will appear below, just fill it out normally, then select the payment method, Alipay and WeChat are supported, then scan the code to pay.

2. Enter the server

After purchasing the server, we have our own server. The next step is to enter the server and set it up.

First log in to your account

View your own server

Click KiwiVM Control Pan

Jump to the control panel page to view your server information and get the external IP address and SSH remote port

Select Root password modification and click the button to generate and set a new root password.

Save this password for later use

In order to facilitate remote use, we can download a putty online

Enter the IP address and SSH port, then select SSH and click Open below

After entering, log in and enter root. You will be prompted to enter a password. Then enter the password you just saved to log in (Note: you cannot see the input status when entering the password)

Then enter the passwd command to set a new password (just like logging in, you cannot see the input status and need to enter it twice). The setting is successful as follows

Next, let's change the SSH port and enter the following command (after copying the command, you can paste it by right clicking)

vim /etc/ssh/sshd_config

If the command does not exist, install vim

Ubuntu / Debian:

apt install -y vim

CentOS:

yum -y install vim

Then execute the command to open the SSH configuration file, press the "i" key to enter the insert mode, and then press "↓" to find the Port at the bottom.

Then change it to the port you want (note: the port range is 1-65535). It is best to set a larger number.

After the changes are completed, save them by pressing Esc first, then press “:wq” and press Enter to save.

After saving, execute the following command to restart the SSH service.

systemctl restart sshd

Then you can log in using the SSH port and password you just modified.

3. Initial Construction

The server remote login has been set up, and the next step is to set it up. It is recommended to use the Pagoda panel for construction here, as the graphical interface is easy to use.

Connect to our server and log in, and execute the following installation command

CentOS:

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install.sh && sh install.sh

Ubuntu:

wget -Oinstall.shhttp://download.bt.cn/install/install.sh && sh install.sh

After execution, the file is downloaded and you are asked whether to install it to the www folder. Press y to agree to continue the installation and wait for the installation to complete.

After the installation is complete, you will get the panel address, username and password

Then visit the pagoda panel address above, enter the login interface, and enter your username and password to log in.

After logging in, a window will pop up prompting us to install the web environment. Here I choose to install the recommended LNMP environment.

While waiting for the background installation, we modify the default port and username and password of the Baota panel.

Select [Panel Settings] in the left panel, go to the settings page, change the panel port, user name and password, and save.

At this point, the preliminary construction of the server is completed. It can be easily used with the Pagoda panel, and the open port can be set in [Security].

You can use it now. If you have time, I will record how to build shadowsocks for FQ in the next article. (ノ ̄▽ ̄)

This is the end of this article about how to purchase and initially build a server. For more information about initial server construction, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • How to set up SVN server under Windows (apache)
  • Win2003 server set up DNS server configuration diagram tutorial (more detailed)
  • Graphic tutorial on building a Redis server under Windows
  • Teach you how to build a secure Linux server tutorial
  • How to build ftp server and configure it with Proftpd under Linux
  • Build a simple image server with nginx under Linux environment
  • Building an SVN server from scratch (with pictures and text)
  • How to build HTTPS server with Nginx and force HTTPS access
  • Detailed steps to build ntp clock server in CentOS 7
  • Detailed steps for setting up and configuring the apache2 server

<<:  js to achieve simple front-end paging effect

>>:  MySql implements page query function

Recommend

Vue Basics Listener Detailed Explanation

Table of contents What is a listener in vue Usage...

Vue.js $refs usage case explanation

Despite props and events, sometimes you still nee...

Vue routing relative path jump method

Table of contents Vue routing relative path jump ...

Exploration and correction of the weird behavior of parseInt() in js

Background: I wonder if you have noticed that if ...

Example of implementing colored progress bar animation using CSS3

Brief Tutorial This is a CSS3 color progress bar ...

Do you know the meaning of special symbols in URL?

1.# # represents a location in a web page. The ch...

How to turn local variables into global variables in JavaScript

First we need to know the self-calling of the fun...

Summary of the differences between get and post requests in Vue

The operating environment of this tutorial: Windo...

Understanding MySQL clustered indexes and how clustered indexes grow

In this note, we briefly describe What is the B+T...

MySQL Basic Tutorial Part 1 MySQL5.7.18 Installation and Connection Tutorial

Starting from this article, a new series of artic...

IIS 7.5 uses URL Rewrite module to achieve web page redirection

We all know that Apache can easily set rewrites f...

Docker image management common operation code examples

Mirroring is also one of the core components of D...

Solve the problem of blocking positioning DDL in MySQL 5.7

In the previous article "MySQL table structu...