Under normal circumstances, we directly start the python program and use ps to view it. The displayed The result is pyton xxx.py, and the web application uses netstat or ss to view it as python
It’s too impersonal, too general, and very ordinary. So there is a group of people who don’t. Satisfied with the fixed name, forging ahead (you are curious, maybe it is just pretending), and showing off your personality, so Google found a very ( ) third-party library—
setproctitle .
Installation#coding:utf8import setproctitle setproctitle.setproctitle("进程别名")
The effect is as follows:
The above is the detailed content of Detailed explanation of Python custom process name. For more information, please follow other related articles on the PHP Chinese website!