Analysis of the problem of kernel mode access to user mode address space introduced by X86 SMAP (Supervisor Mode Access Prevention) mechanism

In Linux systems, when it comes to copying user-mode and kernel-mode data, if you do not consider the zero-copy situation of establishing a shared mapping between kernel space and user space, you usually call several groups of macros copy_from_user/copy_to_user/put_user/get_user. realized. Earlier, for the two situations of illegal user mode pointer (no VMA) or page fault […]

supervisorProblem handling unix:///var/run/supervisor/supervisor.sock no such file

Problem description Recently, the author encountered some problems when configuring supervisor and hoping to use supervisor for process service management, specifically: When running supervisorctl status, I encountered the problem of unix:///var/run/supervisor/supervisor.sock no such file. I encountered the following error when running sudo service supervisor status sudo service supervisor status ● supervisor.service – Supervisor process control […]

Run Django better with Gunicorn, Supervisor and Nginx

Article directory Running Django via runserver Running Django via Gunicorn Reverse proxy through Nginx Host gunicorn and nginx through Supervisor Also published on personal website: https://panzhixiang.cn Run Django through runserver I believe that those who have used Django for development must be familiar with the python manage.py runserver command. This command uses a web server […]

Run Django better with Gunicorn, Supervisor and Nginx

Article directory Running Django via runserver Running Django via Gunicorn Reverse proxy through Nginx Host gunicorn and nginx through Supervisor Publish simultaneously on personal website: https://panzhixiang.cn Run Django through runserver I believe that those who have used Django for development must be familiar with the python manage.py runserver command. This command uses a web server […]

Without a painful doctoral study experience, you are unqualified! A doctoral supervisor from the Chinese Academy of Sciences who has graduated more than 30 Ph.D.s speaks…

Click “Xiaobai Xue Vision” above and choose to add “Star” or “Pin“ Heavy stuff, delivered as soon as possible Content source: ScienceNet Blog Direct source: English version of Zhejiang University Journal Author: Peng Silong I have taught doctoral students for more than ten years and have graduated more than 30 doctoral students. However, there has […]

Supervisor process permission management

Abnormal phenomena Port 541 cannot be started to monitor because ordinary users can only start ports larger than 1024. Only the root user has the permission to start ports below 1024. Supervisor changes the startup user This changes the supervisor process from an ordinary user to a root user. #Hansight Enterprise supervisor config file. [unix_http_server] […]

supervisor cluster management

Introduction to Cesi CeSi (Centralized Supervisor Interface) is a Web UI officially recommended by Supervisor for centralized management of Supervisor instances. This tool is written in Python Cesi installation steps export CESI_SETUP_PATH=~/cesi mkdir ${CESI_SETUP_PATH} cd ${CESI_SETUP_PATH} wget https://github.com/gamegos/cesi/releases/download/v2.6.7/cesi-extended.tar.gz -O cesi.tar.gz tar -xvf cesi.tar.gz python3 -m venv venv source venv/bin/activate pip3 install -r requirements.txt pip3 install […]

Linux – supervisor

What is a supervisor? Supervisor is a process manager on linux and a management tool. When the process stops, Supervisor can automatically start it, and can run on various unix-like machines, and does not support windows system. Supervisor runs on python3.4 and above and python2.7. Supervisor is a set of process management programs developed based […]

Use supervisor to guard tp5 (think-queue) queue, supervisor configuration

1.yum install supervisor yum install epel-release yum install supervisor / / Set the boot to automatically start systemctl enable supervisord 1 2 3 4 2. Configuration Find the /etc/supervisord.conf configuration file, open and edit the content as follows 1 ; Sample supervisor config file. [unix_http_server] file=/var/run/supervisor/supervisor.sock ; (the path to the socket file) ;chmod=0700 ;sockef […]