运维
看淡从前,不惧未来
清醒做事,糊涂做人。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
SCM provider autodetection failed. Both git and svn claim to support this project
SCM provider autodetection failed. Both git and svn claim to support this project. Please use "sonar.scm.provider" to define SCM of your project.原创 2023-07-19 14:57:49 · 1163 阅读 · 2 评论 -
vue 部署成功后刷新页面404
nginx服务解决办法:在nginx.conf 中添加location / { try_files $uri $uri/ @router; index index.html;}location @router { rewrite ^.*$ /index.html last;}tomcat服务解决办法:1.进入tomcat/webapps/${项目名}/2.新创建WEB-INF文件夹3.新创建web.xml文件 文件内容如下:......原创 2022-06-17 10:39:37 · 360 阅读 · 0 评论 -
centos下查看内存条槽数以及已经使用的数量
dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range原创 2022-03-17 17:27:55 · 2760 阅读 · 0 评论 -
linux下离线安装svn服务器并配置
linux下离线安装svn服务器并配置原创 2022-03-03 14:59:05 · 1133 阅读 · 0 评论 -
Centos7密码登录失败锁定设置
vi/etc/pam.d/sshdauth required pam_tally2.so deny=3 unlock_time=3000 even_deny_root root_unlock_time=60even_deny_root也限制root用户;deny设置普通用户和root用户连续错误登陆的最大次数,超过最大次数,则锁定该用户unlock_time设定普通用户锁定后,多少时间后解锁,单位是秒;root_unlock_time设定root用户锁定后,多少时间后解锁...原创 2021-11-18 10:48:09 · 2562 阅读 · 0 评论 -
Linux ll 文件详解
原创 2021-07-20 17:12:18 · 1078 阅读 · 0 评论 -
Linux watch命令详解
简介watch是一个非常实用的命令,基本所有的 Linux 发行版都带有这个小工具,watch可以帮你监测一个命令的运行结果,省得你一遍遍的手动运行。在Linux下,watch是周期性的执行下个程序,并全屏显示执行结果。你可以拿他来监测你想要的一切命令的结果变化,比如 tail 一个 log 文件,ls 监测某个文件的大小变化,看你的想象力了!命令格式:watch[参数][命令]其它操作:切换终端:Ctrl + X 退出watch:Ctrl + G命令功能:可以将命令的输...转载 2021-04-12 15:39:23 · 757 阅读 · 0 评论 -
Linux sar命令详解
-A 显示系统所有资源设备(CPU、内存、磁盘)的运行状况。 -u 显示系统所有 CPU 在采样时间内的负载状态。 -P 显示当前系统中指定 CPU 的使用情况。 -d 显示系统所有硬盘设备在采样时间内的使用状态。 -r 显示系统内存在采样时间内的使用情况。 -b 显示缓冲区在采样时间内的使用情况。 -v 显示 inode 节点、文件和其他内核表的统计信息。 -n 显示网络运行状态,此选项后可跟 DEV(显示网络接口信息)、EDEV原创 2021-04-09 17:31:51 · 363 阅读 · 0 评论 -
ERROR 1054 (42S22): Unknown column ‘password‘ in ‘field list‘
错误的原因是5.7版本下的mysql数据库下已经没有password这个字段了,password字段改成了authentication_stringupdate mysql.user set authentication_string=password('密码') where user='用户名'; #修改成功flush privileges; #立即生效...原创 2021-04-08 11:21:57 · 1162 阅读 · 0 评论 -
mysql 报错 Out of sort memory, consider increasing server sort buffer size
show variables like '%sort_buffer_size%';SET GLOBAL sort_buffer_size = 1024*1024SET sort_buffer_size = 1024*1024原创 2020-11-19 14:20:41 · 2812 阅读 · 0 评论 -
linux 服务器同步北京时间以及开机自动同步时间
安装ntpdate yum install ntpdate删除自带的时间文件rm -rf /etc/localtimeln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime修改定时任务crontab -e每天5点同步一次时间0 5 * * * /usr/sbin/ntpdate -u ntp.api.bz开机自动同步1.vi /etc/crontab0 5 * * * /usr/sbin/ntpdate...原创 2020-11-06 14:13:42 · 457 阅读 · 0 评论 -
linux 服务器在线扩容
https://blog.youkuaiyun.com/weixin_42038296/article/details/80465895转载 2020-09-12 10:33:05 · 175 阅读 · 0 评论 -
centos下发布jar包项目并查看日志
到xxx.jar目录下执行:nohup java -jar xxx.jar > people.log 2>&1 & -- 运行jar包并包日志写入到people.log中tail -f people.log --查看运行日志原创 2019-06-27 11:04:24 · 4776 阅读 · 0 评论 -
Linux 加强防护的操作 禁用ping,禁用root远程登陆,修改默认22端口
vi /etc/services原创 2020-08-28 14:51:43 · 476 阅读 · 0 评论 -
centos 7 开放指定端口以及验证端口是否开放
添加指定需要开放的端口:firewall-cmd --add-port=8080/tcp --permanent重载入添加的端口:firewall-cmd --reload查询指定端口是否开启成功:firewall-cmd --query-port=123/tcp原创 2020-08-27 15:19:56 · 511 阅读 · 0 评论 -
Centos 7 mysql 8.0 安装并做数据文件迁移 实测可用
https://blog.youkuaiyun.com/gispipi/article/details/106494367原创 2020-08-27 15:06:00 · 994 阅读 · 1 评论 -
windows安装mysql 提示:计算机丢失 MSVCr120.dll
下载安装即可https://www.microsoft.com/en-us/download/details.aspx?id=40784原创 2020-08-19 15:07:50 · 500 阅读 · 0 评论 -
mysql锁表解决方案
执行 :SELECT * FROM information_schema.innodb_trx得到try_mysql_thread_id的值最后执行:killtry_mysql_thread_id转载 2020-07-17 16:11:27 · 207 阅读 · 0 评论 -
解决jenkins远程部署tomcat8.0+的问题
vi tomcat/conf/tomcat-users.xml<role rolename="admin-gui"/><role rolename="manager-gui"/><role rolename="manager-script"/><user username="admin" password="admin" roles="ma...转载 2020-04-17 11:14:27 · 240 阅读 · 0 评论 -
tomcat启动过慢优化
1. 在jdk安装目录配置编辑$JAVA_HOME/jre/lib/security/Java.security文件,将securerandom.source=file:/dev/random 换成 securerandom.source=file:/dev/urandom 即可2. 在tomcat配置文件catalina.sh中修改tomcat的catalina.sh文件位于to...原创 2020-04-10 10:47:43 · 238 阅读 · 0 评论 -
mysql 数据文件迁移 mysqld_safe Directory '/home/data/mysql' for UNIX socket file don't exists.
具体步奏的参照这位博主的:https://blog.youkuaiyun.com/weixin_44110998/article/details/102687900我这边用service mysqld restart启动mysql报错用了很多网上的办法依然没解决得了。最后换了种启动方式就成功了。mysqld_safe &...原创 2020-01-20 15:11:41 · 1179 阅读 · 3 评论
分享