上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 108 下一页
摘要: 参考:https://blog.csdn.net/hanjiezz/article/details/79571703 shell脚本为了防止同时执行相同的脚本需要设置互斥锁 简单方法,脚本执行开始生成一个锁文件,如果该锁文件存在则代表有人在执行,就退出脚本 test.sh sleep模拟脚本在执行其 阅读全文
posted @ 2019-09-07 16:17 minseo 阅读(1239) 评论(0) 推荐(0)
摘要: 子网掩码格式为255.255.255.0可以通过以下脚本计算掩码位数 步骤 阅读全文
posted @ 2019-08-30 16:01 minseo 阅读(2216) 评论(0) 推荐(0)
摘要: 参考:https://help.aliyun.com/knowledge_detail/42520.html MySQL忘记了root登录密码需要重置 1,修改配置文件 一般配置文件路径为/etc/my.cnf 在[mysqld]下增加一行设置免密登录 [mysqld] skip-grant-tab 阅读全文
posted @ 2019-08-26 14:42 minseo 阅读(355) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/YatHo/p/7866029.html docker启动后日志会在以下位置 也可以使用以下命令查看 使用docker-compose可以通过配置把日志记录到本地文件中 目录结构如下,其中mysql下的conf放置配置文件 data为数据库文件 阅读全文
posted @ 2019-08-16 15:09 minseo 阅读(57778) 评论(0) 推荐(3)
摘要: 参考:https://blog.csdn.net/eumenides_/article/details/94719944 https://muguang.me/it/2658.html 使用docker部署容器时,输出日志时间会比系统正常时间少8小时 1,环境查看 2,创建容器查看日志 启动一个容器 阅读全文
posted @ 2019-08-16 15:06 minseo 阅读(19140) 评论(5) 推荐(1)
摘要: Ubuntu18使用netplan设置网络参考:https://www.cnblogs.com/minseo/p/11325384.html 修改配置文件 重启主机即可 PS:1,重启主机会选择其中一个物理口的mac地址作为聚合端口的mac地址,而且两个物理端口地址会一致,假如1口接触好2口断了重启 阅读全文
posted @ 2019-08-09 10:54 minseo 阅读(5193) 评论(0) 推荐(0)
摘要: 参考:https://my.oschina.net/u/2306127/blog/2877106 https://blog.csdn.net/peyte1/article/details/80509056 Ubuntu18使用netplan设置网络,于之前版本区别很大,设置/etc/network/ 阅读全文
posted @ 2019-08-09 10:08 minseo 阅读(11232) 评论(0) 推荐(0)
摘要: 使用普通用户只需特权命令是需要输入密码,然后在五分钟以内只需命令可以免密码,下面设置免密码操作 系统环境查看 切换至root用户 修改sudoers文件 以后使用用户your_user_name执行特权命令就可以不输入密码,使用该用户切换至root也不需要密码 阅读全文
posted @ 2019-08-08 10:02 minseo 阅读(10850) 评论(0) 推荐(1)
摘要: 参考:https://blog.csdn.net/php12345679/article/details/80843939 https://blog.csdn.net/pf1234321/article/details/83106144 nginx的gzip常用配置参数 在http或server模块 阅读全文
posted @ 2019-08-07 14:56 minseo 阅读(591) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/liangbenstudy/p/10246895.html MySQL 5.7.22查询时候报错 argument out of range 报错代码1055 原因sql_mode模式导致 参考sql_mode默认配置 把参数ONLY_FULL_ 阅读全文
posted @ 2019-07-26 17:53 minseo 阅读(3816) 评论(0) 推荐(0)
上一页 1 ··· 60 61 62 63 64 65 66 67 68 ··· 108 下一页