上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 107 下一页
摘要: 参考: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 阅读(353) 评论(0) 推荐(0)
摘要: 参考:https://www.cnblogs.com/YatHo/p/7866029.html docker启动后日志会在以下位置 也可以使用以下命令查看 使用docker-compose可以通过配置把日志记录到本地文件中 目录结构如下,其中mysql下的conf放置配置文件 data为数据库文件 阅读全文
posted @ 2019-08-16 15:09 minseo 阅读(57758) 评论(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 阅读(19076) 评论(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 阅读(5184) 评论(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 阅读(11218) 评论(0) 推荐(0)
摘要: 使用普通用户只需特权命令是需要输入密码,然后在五分钟以内只需命令可以免密码,下面设置免密码操作 系统环境查看 切换至root用户 修改sudoers文件 以后使用用户your_user_name执行特权命令就可以不输入密码,使用该用户切换至root也不需要密码 阅读全文
posted @ 2019-08-08 10:02 minseo 阅读(10838) 评论(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 阅读(586) 评论(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 阅读(3810) 评论(0) 推荐(0)
摘要: gitlab提交时间显示错误,明明是近期修改提交的代码在页面显示的时间是19年前 查看配置文件 时区设置正确,再说就算是时区设置错误相差也应该是8小时 查看gitlab状态其他服务正常只有prometheus宕 查看日志 报错如下 根据提示,删除数据文件夹 然后重启gitlab即可,会重新生成数据文 阅读全文
posted @ 2019-07-24 11:33 minseo 阅读(3775) 评论(0) 推荐(0)
摘要: python的内建模块itertools提供了非常有用的用于操作迭代对象的函数 首先,我们看看itertools提供的几个无限迭代器 因为count()会创建一个无限迭代器,所以上述代码会打印出自然数序列,根本停不下来,只能按Ctrl+c退出 cycle()会把传入的一个序列无限重复下去: 同样停不 阅读全文
posted @ 2019-07-22 09:50 minseo 阅读(315) 评论(0) 推荐(0)
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 107 下一页