Linux
竟然有人抢包
这个作者很懒,什么都没留下…
展开
-
Linux命令收藏
列出需要进程ps -ef | grep xxx杀进程kill -9 xxx打印实时日志tail -f xxx查看最新日志vi + xxx查看centos版本和架构cat /etc/redhat-releasecat /proc/version修改文件权限(分别表示User、Group、及Other的权限,r=4,w=2,x=1,二进制值相加)chmod 777 file从 ‘/’ 开始进入根文件系统搜索文件和目录find / -name file1 显示已经挂载原创 2020-09-02 17:46:12 · 142 阅读 · 0 评论 -
shell——查找指定进程并且关闭
查询进程信息ps -ef|grep sdtc-report过滤grep进程ps -ef|grep sdtc-report |grep -v grep提取pid(awk以空格分割,显示第二个变量即为pid)ps -ef|grep sdtc-report |grep -v grep |awk '{print $2}'...原创 2020-04-14 09:19:04 · 1538 阅读 · 0 评论 -
Linux--shell进入某个目录
在linux环境下,我们经常会有通过shell脚本进入指定目录的操作,脚本test1.sh内容如下:#!/bin/shcd /home/softecho "abc"cd -sh ./test1.sh 执行之后并不会进入soft目录, 这是因为shell在执行脚本时,会创建一个子shell,并在子shell中逐个执行脚本中的指令; 而子shell中从父shell中继承了环境变量,但是执行...原创 2019-12-30 09:50:45 · 3563 阅读 · 0 评论 -
postgresql安装
postgresql实在太坑了,很烦安装yum源yum install -y https://download.postgresql.org/pub/repos/yum/11/redhat/rhel-7-x86_64/pgdg-centos11-11-2.noarch.rpm安装yum -y install postgresql11 postgresql11-server postgre...原创 2019-10-24 11:51:10 · 191 阅读 · 0 评论 -
Linux后台运行方法
nohup mvn spring-boot:run &查看后台应用:jobsjobs用于查看当前终端后台运行的任务,换了终端就看不到了。当退出xshell后,可以通过查看占用端口进行查询进程:netstat -tunlp|grep {port}kill -9 它的PID即可参考https://blog.csdn.net/xiaoliyi185/article/de...原创 2019-09-26 15:22:33 · 167 阅读 · 0 评论