Process management, service management, remote

Source: Internet
Author: User

1. What is a process

Process is what the system is doing

2. Process status

Run

Dormancy

Stop it

Go on

End

Zombie Process

3. How to view processes in a drawing

Gnome-system-monitor

4. How to view processes with commands

PS Process Viewing tool

-a process running in shell

-X does not process the shell re-run

-U View Process user

-L Display Process details

-F Full info abbreviation

-e Displays all processes in the system

Ps-aux |grep Process keyword

PS Ax-o%cpu,%mem,user,pid,comm # #查看进程某项信息

PS aux--sort +|-%cpu|%mem ... # #进程按指定方式排序

5. How to control the front and back calls of the shell heavy process

Command & # #进程在shell后台运行

CTRL +z # #把占用shell的进程打入后台停止

Jobs # #查看被打入后台的进程信息

FG Job Number # #把指定进程调回前台

BG Job number # #运行后台停止进程

CTRL +c # #关闭占用shell进程

6. How to control processes with commands

1) Signal

Signal 1 # #reload进程

Signal 2 # #ctrl +c Delete the information in memory of the process

Signal 3 # #内存中的鼠标信息清除

Signal 9 # #强行关闭进程

Signal # #正常关闭进程

Signal # #开启停止的进程

Signal # #停止正在运行的进程

Signal # #ctrl +z

2) Signal Initiation

Kill Signal PID

Killall Signal Process Name

Pkill-u Username # #结束某个用户的所有进程

7. User Login Monitoring

W # #查看当前使用系统的用户

W-f # #查看当前使用系统的用户并显示使用地点

Last # #查看登陆过系统的用户

LASTB # #查看试图登陆但没有成功的用户

8.top command

U username

K Signal

H

S

M

C


1. What is a service?

Service

Service is the software running in the system, this software is mainly to provide a function, then we call this kind of software service

2. Service Management, Systemctl command

Systemctl Start Service Name # # #开启服务

Stop .... # # #关闭服务

Restart .... # # #重启服务

Reload .... # # #重新加在服务配置

Status .... # # #查看服务状态

Enable .... # # #设定服务开机启动

Disable .... # # #禁止服务开机启动

List-dependencies # # #查看服务依赖关系

List-units # # #查看当前运行的所有服务

List-unit-files # # #查看服务的开机启动情况

Set-defaultmulti-user.target # # #开机不启动图形

Set-defaultgraphical.target # # #开机启动图形

1. What is OpenSSH

is a software that provides remote access control

2. How to implement remote access

SSH remote host user @ remote host IP address

SSH [email protected]

The authenticity of host ' 172.25.254.1 (172.25.254.1) ' can ' t be established.

ECDSA key fingerprint is 55:dd:43:ce:bf:94:dd:91:49:e7:97:29:63:3d:02:02.

Is you sure want to continue connecting (yes/no)? Yes # #建立安全传输key

[email protected] ' s password: # #密码输入没有回显

Last failed Login:sun Oct one 16:56:29 CST from172.25.254.206 on Ssh:notty

There was 1 failed login attempt since the lastsuccessful login.

Last Login:sun Oct 16:55:46 from172.25.254.206

[Email protected] ~]# # # #登陆成功

CTRL +d |logout # # #退出

[Email protected] ~]# Logout

Connection to 172.25.254.1 closed.

[Email protected] ~]# VIM/ETC/MOTD # # #设定登陆显示字符


This article is from the "12444971" blog, please be sure to keep this source http://12454971.blog.51cto.com/12444971/1897120

Process management, service management, remote

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.