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

Linux commands commonly used in work

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

1. Nohup mode starts weblogic 1. Start the war package) nohup. / startweblogic.sh & 2. Start the jar package) nohup java-jar xbp-cwhs-cwzw.jar & 2. Check the weblogic background log tail-f nohup.out shows 500lines tail-500nohup.out 3. View the current process ps-ef | grep jdk 4. End process kill-9 process number 5. Check the network match ifconfig 6. The file owner changes the chown-R username file / directory 7. Change file permissions chown 777 file name

8. Delete the file rm-rf filename 9. Extract the file 1.unzip common.war (file name)-d common (folder name) 2.jar xvf common.war 10. Check the firewall status service iptables status 11. The firewall starts and shuts down service iptables stop-- stops service iptables start-- starts 12. Restart docker systemctl restart docker 13. Restart the network service service netkork restart 14. Clear the contents of the file [root@centos7 ~] # du-h test.txt 4.0K test.txt [root@centos7 ~] # > test.txt [root@centos7 ~] # du-h test.txt test.txt 15 View Route status route-e 16 Open rabbitmq service rabbitmq-server start 17 query which port is occupied by netstat-anp | grep 8080 18 linux launch oracle $su-oracle 19 linux test port ssh-v-p port username@ip 20 traceroute ip Trace route 22 copies all files under dir1 to dir2. If the dir2 directory does not exist, you can simply use cp-r dir1 dir2. If the dir2 directory already exists, you need to use cp-r dir1/. Dir2 23 query current time date-R 24 View ip address ifconfig-a 25 main method of separate execution class (dependent on jar package) (package name) (main method path) linux environment java-cp.: amqp-client-3.3.4.jar:1.jar com.test.rabbitmq.RabbitmqInit opens cmd command window window environment java-cp.; amqp-client-3.3.4.jar;. 1.jar com.test.rabbitmq.RabbitmqInitForYDZYJX 26 View system running memory information free-h 27 View current machine ip hostname-I 28 View hostname hostname 29 set hostname hostname xxx

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

Servers

Wechat

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

12
Report