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

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

Share

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

This article mainly introduces how to configure VPS under Linux, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.

VPS is also called virtual dedicated server. It is equivalent to a technology that can split a server into multiple virtual proprietary servers. This technology can provide you with high-quality services. Each VPS can allocate independent public network IP addresses, independent operating systems, independent super-large space, independent running memory, independent CPU resources, independent execution programs and independent system configuration, etc., which can fundamentally prevent association.

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.

Thank you for reading this article carefully. I hope the article "how to configure VPS under Linux" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you 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