Currently: centos 7, this article is to make a collection of instruction in learning linux, to facilitate their access to
Into the folder: cd xxx Most return the parent folder: cd / view all files in the current folder: ls
1. Review all processes: PS - EF 2. Check the specific process: PS -ef | grep Redis ps: a process will be displayed - A show all programs. -e effect and specify this parameter "A" of the same parameters. - f show UID, PPIP, C and STIME field. grep command is to find Middle | pipeline command refers to the ps command with grep executed simultaneously The meaning of this command is to display the relevant processes related to redis 3 .kill [parameters] [process ID] kill -9 4394 It is to kill a process id to send a signal. The default signal is transmitted SIGTERM, and the kill signal is transmitted -9 SIGKILL, i.e. exit. exit signal is not blocked by the system, so kill -9 can successfully kill the process. Of course, you can also use kill to send signals to other processes.
Taken https://www.cnblogs.com/yiyangl/p/11130577.html
Create a service definition file: Sudo nano / etc / systemd / system / Kestrel hellomvc.service The following is an example of a service application file: [Unit] Description=Example .NET Web API App running on Ubuntu [Service] WorkingDirectory=/var/aspnetcore/hellomvc ExecStart=/usr/bin/dotnet /var/aspnetcore/hellomvc/hellomvc.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 SyslogIdentifier=dotnet-example User=xxx Environment=ASPNETCORE_ENVIRONMENT=Development [Install] WantedBy=multi-user.target Save the file and enable the service. systemctl enable kestrel-hellomvc.service Start the service and verify that it is running. systemctl start kestrel-hellomvc.service systemctl status kestrel-hellomvc.service You need to use the application dll path of the working directory (the path to your application and Exec Start) is set to the folder. By default, this is enough.
Taken https://blog.csdn.net/wojiaosha123/article/details/98784936