Supplement instructions for some problems that need to be resolved after an error is reported
5.1 kill and ps (kill process and display process)
Display the process of system execution
ps -aux
PID : is the process number
Or jps
you can display the processes running on the jvm.
If you want to terminate a process, use kill
kill -9 corresponding bash process number
5.2 rpm (software installation)
5.2.1 Management of rmp package
Introduction : A packaging and installation tool for Internet download packages, which is included in some Linux distributions. It generates files with a .RPM extension. RPM is the abbreviation of RedHat Package Manager (RedHat package management tool), similar to windows setup.exe. Although the file format name is marked with the RedHat logo, the concept is universal.
Linux distributions are adopted (suse, redhat, centos, etc.), which can be regarded as a recognized industry standard.
5.2.2 Commonly used commands for rpm
1. Query
Query whether to install the rpm package of Firefox to
rpm -q firefox
query all installed rpm packages
rpm -qa
2. Delete
If you delete the rpm package installed by Firefox,
rpm -e firefox
if you delete an error saying that it is dependent, you can force it to delete but it is not recommended
rpm -e --nodeps foo
3. Installation
- rpm -ivh RPM package full path name
parameter description
i = instal installation
v = verbose prompt
h = hash progress bar
5.3 yum (software installation)
5.3.1 Introduction to yum
Introduction : Yum is a Shell package manager. Based on RPM package management, it can automatically download and install RPM packages from a specified server, and can automatically handle dependencies and install all dependent packages at once.
5.3.2 Search RPM package in yum
yum search [Keywords]
yum search vim
You can also use grep to process
yum list | grep 'vim'
5.3.3 Install RPM package with yum
yum install -y [RPM package name]
If you do not add -y, it will be installed interactively with the user
5.3.4 Uninstall RPM package with yum
yum remove -y [RPM package name]
If you do not add -y, it will be deleted by interacting with the user. Try not to add
5.3.5 Update RPM package with yum
yum update -y [RPM package name]
If you do not add -y, the way you interact with the user will be updated