Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the commonly used instructions in linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

What are the commonly used instructions in linux, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, hope you can gain something.

As more and more linux is used at work now, let's rearrange it here.

1.tailf / home/tomcat/apache-tomcat-8.5.8/logs/catalina.out View logs under tomcat

2.show full processlist checks to see if there is a lock table (this can be seen in navigat)

Image.png

Image.png

If state is wating for table metadata locak, the table is locked, and the sql of the locked table is the info on the right. You can solve the problem by ending the process or restarting mysql. Kill-9 pid kills the process and restarts mysql service mysql restart to log in to mysql mysql-uroot-p

3.ps-ef | grep tomcat to check whether tomcat is enabled. If you want to close it, you can run kill-9 pid.

View the tomcat log:

Root@ZhiFa:/services/tonmx/tomcat-8/logs# tail-n 500 catalina.out

The difference between 4.Nat and bridging mode

Image.png

Nat mode means that a second-level route is specified. For example, if the physical machine ip is 192.168.31.23, it will be randomly assigned to the virtual machine 192.168.207.33. If bridging is used, the ip assigned to the virtual machine is 192.168.31.88. Using the bridging mode, the ports of the virtual machine can be directly accessed without mapping.

5.chmod + x catalina.sh adds permissions to the file, and catalina.sh is the file name.

6.ll and ls,ll list the current directory in a tree, while ls lists the current directory horizontally

7.tar xf vic.tar.gz gz is equivalent to exe in windows, which can be installed directly by tar xf.

8.wget http://www.... Download the address directly to linux via url

9.yum-y install wget because linux may be a stripped-down version, many instructions do not have to do, yum install what you want to install can be

10.service iptables stop-turn off linux's firewall

11.find-name bin search directory-name target name

12.find /-name startup.sh stands for search file-name target name

The 13.find /-size + 204800-sign is less than, and writing a number directly means equal to, which means finding files greater than 204KB.

14.find / tmp-type d finds all directories under a directory

15.find / etc-cmin-60 look for files that have been modified within 1 hour of etc.

16.find /-name startup* this is a fuzzy search

17.whereis statup.sh can directly find out the directory where the file is located.

18.history finds all the commands you are currently using. Run them when you are done. Saving notes is a good choice.

19.pwd to view the current file directory

20. And cd.. Cd~ and so on will not say much.

21.linux also has a use of seach. I forgot, but find is enough.

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report