美文网首页
linux相关命令

linux相关命令

作者: 有梦想永远年轻 | 来源:发表于2019-06-23 20:47 被阅读0次

1. jar包运行,外挂配置文件:java -jar server.jar  --spring.config.addition-location=/home/application.properties

2. 将文件变为可执行文件:chmod 777 test(test为文件名)

3. 查看某个进程线程数:pstree -p 5240(进程端口号)

4. 统计进程数:pstree -p 5240 | wc -l

5. 查看机器性能:top -H

6. 将一台服务器的文件复制到另外一台:scp /root/install.* root@192.168.1.12:/usr/local/src

7. 测试连接某个端口:telnet ip port

8. 查看某个端口是否被占用:netstat  -anp  |grep   端口号

相关文章

网友评论

      本文标题:linux相关命令

      本文链接:https://www.haomeiwen.com/subject/trswqctx.html