Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build VPS under Linux

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly shows you "how to build VPS under Linux". The content is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn how to build VPS under Linux.

VPS technology refers to the high-quality service that divides a server into multiple virtual proprietary servers. The technology to realize VPS is divided into container technology and virtualization technology. In containers or virtual machines, each VPS can assign independent public network IP addresses, independent operating systems, and achieve isolation of disk space, memory, CPU resources, processes and system configurations among different VPS, so as to simulate the experience of "exclusive" use of computing resources for users and applications.

Install component

Install the python component: yum install m2crypto python-setuptools

Easy_install pip

Install shadowsocks:pip install shadowsocks

Configuration parameters

Create and edit the file: vim / etc/shadowsocks.json

Copy the following configuration:

{"server": "0.0.0.0", "server_port": 8388, "local_address": "127.0.0.1", "local_port": 1080, "password": "password", "timeout": 300, "method": "aes-256-cfb", "fast_open": false, "workers": 1}

Main parameter description: server_port: open VPS service port, and password: login password.

Start the service

Launch command: ssserver-c / etc/shadowsocks.json

The results of successful startup are as follows:

The establishment of Linux, the establishment of VPSLinux, the connection of VPS to VPS

Windows: use shadowsocks client to connect, because Baidu cannot search and download directly, github download address: https://github.com/shadowsocks/shadowsocks-windows/releases; the software is very easy to use, first install, and then fill in the VPS server IP, port, password correctly to connect, and the system proxy mode can be used by enabling PAC mode or global mode.

IPhone/iPad: it can be used after downloading the simple configuration of Shadowrocket. Currently, the software cannot be searched on appstore. You can download it using pp Assistant.

Background operation

Since the above startup method is to start directly, if you close the session window, you will close the service, so we use supervisor to run in the background (if you want to learn more about supervisor, please search the supervisor tutorial. This article is for simple applications only).

Install python tool: yum install python-setuptools install supervisor:easy_install supervisor create configuration file: echo_supervisord_conf > / etc/supervisord.conf add task: vi / etc/ installord.confession [program: ssserver] command = ssserver-c / etc/shadowsocks.jsonautostart=trueautorestart=truestartsecs=3

Test whether the configuration is successful: supervisord-c / etc/supervisord.conf, and then use ps-ef | grep shadowsocks to check whether the process exists. If the process exists, the configuration is successful.

Configure boot startup: vi / etc/rc.d/rc.local adds supervisord at the end of the line. In addition, centos7 also requires configuration file permissions: chmod + x / etc/rc.local, which can be run automatically by restarting the server.

These are all the contents of the article "how to build VPS under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report