The server with public IP installs the operating system, builds the environment to purchase the domain name, and addon domain IP deploys the application.
Basically, after these four combinations are finished, even if your personal website is built, the follow-up thing is to contribute to it and shine.
Ok, introduce us in turn:
Computer network server
Most companies will have their own servers and public IP, or host or build their own computer rooms. But for individual users, there is no need to waste time and energy to do this. Just buy a VPS (Virtual Private Server). What is VPS? I suggest you check Wikipedia. Simply put, you will have a virtual host. Except for the invisible chassis, you can run it like a physical server, with independent operating system and hard disk space, independent memory and CPU resources, independent execution programs and system configuration. You can install your own operating system and software and restart it independently.
In the choice of VPS, I use Linode. Linode is a service provider from Midi, which specializes in Linux VPS. The virtualization technology adopts Xen, and Linode means Linux node. Note that the operating system here is Linux. I recommend that all personal websites use Linux. I won't explain it. If you want to use Windows Server, you don't need to read the following.
Linod has a good reputation at home and abroad, with moderate price, reliable quality and no deception. Linode provides a variety of Linux operating systems to choose from, such as Ubuntu, Redhat, Debian, CentOS and so on. Installing and reinstalling the system is very simple.
Ok, let's briefly talk about the steps and visit.
Fill in the email address, user name and password. Even if the registration is successful, Linode will send you an email to confirm and open the confirmation link. Everyone will see the contents in the following figure:
Linode provides 7 x 24 x 365 support services through its ticket system (a set of support systems). Obviously, it is not a 7 x 24 x 365 uninterrupted service. Now I am particularly annoyed with some corporate customers, and I will never stop talking. Who but God can guarantee that they will never stop? After a long time, I'm going down, too! In addition, Linode also provides a 4-hour free trial service, which is quite kind. If you feel uncomfortable after trying, you can choose not to play
If you choose to continue, you can choose the computer room. Linode currently provides computer rooms in Tokyo, Europe and America. I chose the Tokyo computer room, which is said to be newly opened for the needs of users in the Asia-Pacific region, and the speed is very fast. Then select the operating system, set the hard disk size, root password, etc. Click "Rebuild" and you will enter the console of VPS. When all the tasks in the host job queue are green and successful, you can click "Boot" to start the system. Then find the "Remote Access" tab, click in to find the access IP of this server, open the terminal, and enter ssh root@x.x.x.x, and you can log in to the system. Look, it's simple!
After the trial, if you think it's ok, click the account tab, improve your information, select the server configuration and payment information, and then you can complete the payment process.
I chose the Linode 1024 package (24 GB disk, 2000 GB). Pay by year, which is about 230 yuan. The money you sponsored these two days is not enough for one year:) There are Visa, MasterCard and American Express, and it is convenient to use only one credit card.
Another thing to note is that after you get the IP, you must test whether you can access it normally without climbing the # # wall. I have encountered this problem. You can't access it in China, but you can hang VPN. I guess some unlucky child used it before, but it was not used after being blocked.
I have to issue a ticket (support question) saying that I can't access this IP in Chinese mainland, but I can access it through VPN. That guy has a quick reaction, but he obviously doesn't know the market in China. He asked me to execute MTR–r x x x x x x, and MTR combined with ping, nslookup and tracert can diagnose the network transmission problem. I had to return the data to him, and as a result, I was impatient when people asked for other data. I explained to ya what the Great Wall is in broken English, which basically means cut the crap and change the IP quickly. That buddy saw that I had a good momentum and quickly changed my IP. I tried it, and there was no problem. He said three grams of oil, he said Willcam, and it's settled. Two people played five rounds, which took two hours, and the efficiency was ok.
Create an environment
The server I chose is Ubuntu 12.04, 64-bit. The following is based on this environment description.
Get the host IP, even if you get the key to the new house, but it is far from moving in, because your host is now a rough room, you can do nothing but go in and have a look. Ok, let's make some simple decorations.
1. Create a user
The first login requires root. What is a root? Root is the best player in the whole Linux operating system. He can do whatever he wants and delete whoever he wants. He is the only myth. He is my D, so it's dangerous, you know. If rm -rf is executed with root, then the whole Zion will be erased and Neo can't save it. If Root wants to, he can erase all traces of your existence. So, you can't just play root. In order to solve this problem, an agent must be established, which is usually an ordinary user and plays the role of root at critical moments.
The specific operation is as follows:
Log in to the system as root first.
ssh root@x.x.x.x
Create a new user with any user name you like, such as mactalk.
adduser mactalk
Enter the password and related information according to the prompt information to complete the operation. Upon completion, the system will automatically establish the /home/mactalk path.
Then authorize and enter.
Visudo
Find the following in the editor:
root ALL=(ALL:ALL) ALL
Add a line below.
mactalk ALL=(ALL:ALL) ALL
Save, press ctrl+X to exit, then you can log out of root and log in again with mactalk (ssh mactalk@x.x.x.x). The default directory for login is under /home/mactalk. When you want to exercise root rights, please add sudo before the command and enter the password according to the system prompt to perform the operation.
Step 2 choose a shell
The user has already created it. Let's choose a shell for the user. It's estimated that Xiao Bai will be afraid to see this. What is a shell?
Shell is a shell of Linux, which you can understand as clothes. It is responsible for the interaction between the outside world and the Linux kernel, receiving commands from users or other applications, and then converting these commands into languages that the kernel can understand and transmitting them to the kernel. The kernel really works, and then returns the result to the user or application after completion. For example, if you say hello to the shell, the shell will run to the kernel and say "old man, someone is looking for you", and the kernel will impatiently say "I have something to say, I am busy", and the shell will feedback this information to you, which is roughly the case. When I used to talk about Mac skills, I often told experts that entering some commands in the terminal, that is, the shell of the Mac, is in the same strain.