摘要: show processlist;找出你要停止的语句然后找出你要终止的语句的idkill 248 show processlist;找出你要停止的语句然后找出你要终止的语句的idkill 248 show processlist;找出你要停止的语句然后找出你要终止的语句的idkill 248 阅读全文
posted @ 2019-09-25 11:08 一切简单化 阅读(12244) 评论(0) 推荐(2) 编辑
摘要: 修改文件目录权限 chmod​ chmod u+x b.txt chmod 777 a.txt 修改文件的所有者和所属组 ​ 修改所有者chown beifeng a.txt 修改所属组chgrp beifeng a.txt 修改所有者和所属组chown root:root a.txt 阅读全文
posted @ 2019-08-29 12:26 一切简单化 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 查看进程 ps -aux (看的全面,信息也全面) 停止进程 Kill -9 java或者Kill -9 7911 查看程序端口占用情况 查看所有进程端口 netstat -ntlp 或者 netstat –apn 查看软件占用进程端口 ps -aux | grep tomcat 阅读全文
posted @ 2019-08-29 12:25 一切简单化 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 分组条件:org_code select count(1) from qyt_company_info t GROUP BY t.org_code HAVING count(1)>1; 阅读全文
posted @ 2019-08-29 12:24 一切简单化 阅读(13752) 评论(0) 推荐(1) 编辑
摘要: tar 1、把文件解压到另一个文件夹里 tar -zxvf jdk-8u11.tar.gz -C /usr/java/ zip 1、压缩文件 zip a.zip demo1.apk (a.zip代表压缩后的文件名称,demo1.apk代表要压缩的文件) 压缩多个文件 zip a.zip demo1. 阅读全文
posted @ 2019-08-29 12:24 一切简单化 阅读(198) 评论(0) 推荐(0) 编辑
摘要: pox.xml: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId><!-- redis --> </dependency> 阅读全文
posted @ 2019-08-29 12:23 一切简单化 阅读(585) 评论(0) 推荐(0) 编辑
摘要: ​ 查看当前用户 whoami 切换用户 su - root 查看所有用户信息 vi /etc/passwd cat /etc/passwd 增加用户root权限 vi /etc/sudoers 1、增加root的所有权限 在开始加如下代码:beifeng ALL=(root)NOPASSWD:AL 阅读全文
posted @ 2019-08-28 10:27 一切简单化 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 1、locale -a查看系统支持的语言2、进入etc/sysconfig/3、编辑i18n4、修改lang ​5、设置完成后刷新:i18n source /etc/sysconfig/i18n 阅读全文
posted @ 2019-08-28 10:26 一切简单化 阅读(4153) 评论(0) 推荐(0) 编辑
摘要: vi /etc/sysconfig/networkhostname=test01增加ip映射 vi /etc/hosts文件中添加192.168.2.13 test01 重启系统即可 windows系统host文件主机名连接映射 C:\Windows\System32\drivers\etc 编辑h 阅读全文
posted @ 2019-08-28 10:25 一切简单化 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 自动获取ip vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 BOOTPROTO=dhcp HWADDR=00:0C:29:5E:D2:07 IPV6INIT=yes NM_CONTROLLED=yes ONBOOT=yes TYPE 阅读全文
posted @ 2019-08-28 10:24 一切简单化 阅读(873) 评论(0) 推荐(0) 编辑