In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to build a virtual server under Ubuntu Server". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to build a virtual server under Ubuntu Server".
We know that there are many kinds, such as Windows Server series with its own servers, installation and configuration are very simple, and today I want to introduce the deployment in the log is Server under Linux, based on the PPTP protocol. Ubuntu system is a release version based on Debian, the communication community is very active, and because based on Debian, his own package manager can handle dependencies very well, making it convenient for us to install software.
In fact, installing Server under Ubuntu is very Easy, which can be done in one sentence:
The code is as follows:
Sudo apt-get install pptpd
Hey, hey, this is done, and then there are some configurations. We need to change three files, which are:
/ etc/pptpd.conf
/ etc/ppp/pptpd-options
/ etc/ppp/chap-secrets
First of all, we use the vi command to modify the first file, mainly by setting the local ip and the ip address of the dial-in user
The code is as follows:
Sudo vi / etc/pptpd.conf
As shown in the figure, localip is the ip address of the linux host, and remoteip is the address pool, that is, the ip address assigned by the computer dialed in remotely.
After that, we will modify / etc/ppp/pptpd-options, mainly by adding the description of the dns configuration.
As shown in the figure, we added two lines (beginning with ms-dns)
Finally, we modify / etc/ppp/chap-secrets, mainly to configure the user.
Fill in according to the format of user name (tab), host name (tab), password (tab) assigned ip address, where the host name can be replaced with "*". If you do not force to specify which ip address the user is assigned to, you can also change the last entry to "*".
Finally, we restart the pptpd service and execute
The code is as follows:
Sudo / etc/init.d/pptpd restart
Wait a moment, hey, make a connection remotely, give it a try.
PS:
If you find that you cannot access the public network, you can turn on ipv4 forward. Modify / etc/sysctl.conf, remove the comment number before "net.ipv4.ip_forward=1", and then "sudo sysctl-p" application configuration, Ok Enjoy it!
Thank you for reading, the above is the content of "how to build a virtual server under Ubuntu Server". After the study of this article, I believe you have a deeper understanding of how to establish a virtual server under Ubuntu Server, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.