Commonly used Linux server operation and troubleshooting skills

Commonly used Linux server operations

1.ls: View all subdirectories and files in the current directory

2.pwd: View the path of the current directory

3.mkdir: create a directory

4.rm: delete

5. cat: print

6.ps -ef | grep ***: View process

7.kill -9 id: kill the process

8.cp: copy files

9.mv: move files

10.vi: Edit file

11.more: view file content

12. find: search content

13. chomd: change permissions

14.tail -f: view the output

15.htop: view cpu

16.atop: display various system resources

17.df -m: check hard disk usage

18.java -jar: Start the jar package

19.uptime: View system running time, number of users, load

20. free: view system memory

Commonly used Linux server operation troubleshooting skills

1. The port is occupied

        1. Use: ps -ef | grep *** to confirm whether the port number is occupied

        2. Check whether the port is repeated in the configuration file

        3. Modify the port and restart

2. The server failed to start

        1. Check whether the power is off

        2. Check memory, cpu, motherboard

3. Server crashes

        1. Check whether it is a software failure or a hardware failure

        2. Check the system log

4. Disk space alarm

        1. Query the specific occupied space directory

        2. Manually delete a log (or delete a log from a certain day ago)

5. Cannot communicate between the two servers

        1. First determine whether the problem lies in the client or the server?

        2. Confirm whether the network connection is successful

        3. Use tools to detect link health

        4. Confirm whether the port is normal (whether the remote port is open)

        5. Confirm the gateway configuration

        6. Is DNS working properly?

        7. Whether the local can connect to the remote server

        8. Do firewall rules apply?

Guess you like

Origin blog.csdn.net/qq_35056891/article/details/130118765
Recommended