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 deploy VPS under Linux

2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article focuses on "how to deploy VPS under Linux". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to deploy VPS under Linux.

VPS technology, the high-quality service of dividing a server into multiple virtual exclusive servers. The technology to realize VPS is divided into container technology and virtualization technology. In containers or virtual machines, each VPS can be equipped with an independent public network IP address, independent operating system, 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:

Connect VPS

Windows: use the shadowsocks client to connect, the software is very easy to use, first install, then fill in the VPS server IP, port and password correctly to connect, and the system agent mode can be used when PAC mode or global mode is enabled.

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.

At this point, I believe you have a deeper understanding of "how to deploy VPS under Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

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