上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
摘要: 查询 去重 SELECT DISTINCT department_id FROM employees; 空值参数运算 如果值为null则使用0替换,任何值与null计算都为null SELECT employee_id,salary "月工资",salary * (1 + IFNULL(commis 阅读全文
posted @ 2022-09-02 14:00 不会跳舞的胖子 阅读(182) 评论(0) 推荐(0)
摘要: 参考文档:https://cloud.tencent.com/developer/article/2015386 $ ps -p 8299 -o etime ELAPSED 04:05:37 etimes 关键字查看经过的时间(以秒为单位) $ ps -p 8299 -o etimes ELAPSE 阅读全文
posted @ 2022-08-29 09:06 不会跳舞的胖子 阅读(285) 评论(0) 推荐(0)
摘要: mv 1.txt 1.txt-`date '+%Y-%m-%d'` cp 1.txt 1.txt-`date '+%Y-%m-%d-%H-%M-%S'` 昨天 date -d last-day +%Y%m%d 自定义 date +%Y-%m-%d --date '2 days ago' 阅读全文
posted @ 2022-08-23 21:02 不会跳舞的胖子 阅读(304) 评论(0) 推荐(0)
摘要: 脚本 forfiles /p C:\Users\Administrator\AppData\Local\Temp\2 /s /c "cmd /c del /q /f @path" cmd.exe /c"echo Y|PowerShell.exe -NoProfile -Command Clear-R 阅读全文
posted @ 2022-08-23 12:57 不会跳舞的胖子 阅读(497) 评论(0) 推荐(0)
摘要: 采用rpm包安装 下载地址:https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql-8.0-community-el7-x86_64/ 安装 yum -y install mysql-community-* 创建目录并修改权限 mkdir /data 阅读全文
posted @ 2022-08-05 10:35 不会跳舞的胖子 阅读(246) 评论(0) 推荐(0)
摘要: 查看端口 netstat -ano 过滤某个端口 netstat -ano |findstr 8080 阅读全文
posted @ 2022-08-01 16:18 不会跳舞的胖子 阅读(54) 评论(0) 推荐(0)
摘要: 对Nginx状态页监控,需要nginx加载模块 --with-http_stub_status_module 1. 配置文件 nginx.conf location /nginx_status { stub_status; access_log off; } 2. cd /etc/zabbix/za 阅读全文
posted @ 2022-08-01 14:34 不会跳舞的胖子 阅读(370) 评论(0) 推荐(0)
摘要: 下载地址:https://github.com/tporadowski/redis/releases 修改配置文件:requirepass passwd 因redis-server 启动命令只是临时启动,关闭窗口服务会关闭,所以需要后台运行。 安装 安装命令:redis-server.exe --s 阅读全文
posted @ 2022-07-30 09:53 不会跳舞的胖子 阅读(590) 评论(0) 推荐(0)
摘要: 参考文档:https://blog.csdn.net/milkbrother1988/article/details/103540583 打开解压后的文件夹,新建一个data文件夹和一个my.ini文件 [mysqld] port=3306 basedir=D:\mysql8 datadir=D:\ 阅读全文
posted @ 2022-07-27 10:56 不会跳舞的胖子 阅读(1082) 评论(0) 推荐(1)
摘要: [root@linux-host1 ~]# cd /etc/sysconfig/network-scripts/ [root@linux-host1 network-scripts]# vim ifcfg-bond0 BOOTPROTO=static NAME=bond0 DEVICE=bond0 阅读全文
posted @ 2022-07-23 13:11 不会跳舞的胖子 阅读(382) 评论(0) 推荐(0)
摘要: ### 1. 查看系统时间: $ date ### 2. 查看硬件时钟: $ hwclock ### 3. 设置时间时区: $ timedatectl set-timezone "Asia/Shanghai" ### 4. 设置硬件时钟与系统时间同步,并设置为UTC $ hwclock --syst 阅读全文
posted @ 2022-07-23 13:09 不会跳舞的胖子 阅读(469) 评论(0) 推荐(0)
摘要: 传递内核参数 net.ifnames=0 biosdevname=0,以更改网卡名称为 eth0,ethX:# 出现安装界面时使用键盘上下键 移动即 到第一行即 Install Centos Linux 7, ,按 然后按 tab 键,即可出现 传递 参数界面。 root密码 阅读全文
posted @ 2022-07-23 11:57 不会跳舞的胖子 阅读(67) 评论(0) 推荐(0)
摘要: 构建报错 rm: cannot remove '/data/test/.git/description': Permission denied rm: cannot remove '/data/test/.git/logs/HEAD': Permission denied 看了一下默认启动用户是je 阅读全文
posted @ 2022-07-19 10:47 不会跳舞的胖子 阅读(814) 评论(0) 推荐(0)
摘要: 线上启动服务,发现过一会就自动失败退出,然后查看了一下日志 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sysJobServiceImpl': I 阅读全文
posted @ 2022-07-12 08:51 不会跳舞的胖子 阅读(567) 评论(0) 推荐(0)
摘要: 1. 在mysqld 配置项添加 skip-grant-tables 2. 重启mysqld 3. 将root密码置空 mysql> update user set authentication_string='' where user='root'; 4. 退出,注释掉skip-grant-tab 阅读全文
posted @ 2022-07-11 15:47 不会跳舞的胖子 阅读(121) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页