博客园 - reboot777
uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=51090
2020-08-18T03:24:40Z
reboot777
https://www.cnblogs.com/reboot777/
feed.cnblogs.com
https://www.cnblogs.com/reboot777/p/13522503.html
linux配置qq邮箱发邮件 - reboot777
1.安装mailx yum -y install mailx 2.配置mail vim /etc/mail.rc set from=xxxxxx@qq.com set smtp=smtps://smtp.qq.com:465 set smtp-auth-user=xxxxxx@qq.com set
2020-08-18T03:25:00Z
2020-08-18T03:25:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.安装mailx yum -y install mailx 2.配置mail vim /etc/mail.rc set from=xxxxxx@qq.com set smtp=smtps://smtp.qq.com:465 set smtp-auth-user=xxxxxx@qq.com set <a href="https://www.cnblogs.com/reboot777/p/13522503.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/13494398.html
yarn dev提示 "ENOSPC: System limit for number of file watchers reached"解决办法 - reboot777
在/etc/sysctl.d/目录下新建max_user_watches.conf文件,新增 fs.inotify.max_user_watches = 524288 执行 sudo sysctl -p --system 即可.
2020-08-13T00:57:00Z
2020-08-13T00:57:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】在/etc/sysctl.d/目录下新建max_user_watches.conf文件,新增 fs.inotify.max_user_watches = 524288 执行 sudo sysctl -p --system 即可. <a href="https://www.cnblogs.com/reboot777/p/13494398.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11910452.html
docker配置远程登录 - reboot777
1.修改docker配置文件: 修改: 2.修改daemon.json文件 新增: 3.重载配置文件 4.重启docker 大功告成!
2019-11-22T03:16:00Z
2019-11-22T03:16:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.修改docker配置文件: 修改: 2.修改daemon.json文件 新增: 3.重载配置文件 4.重启docker 大功告成! <a href="https://www.cnblogs.com/reboot777/p/11910452.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11576791.html
go mod使用 - reboot777
go 1.13 go mod使用
2019-09-24T02:18:00Z
2019-09-24T02:18:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】go 1.13 go mod使用 <a href="https://www.cnblogs.com/reboot777/p/11576791.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11440065.html
阿里云CentOS 7常用软件安装配置 - reboot777
阿里云CentOS 7常用软件安装配置 [TOC] 基础配置 包含软件更新,配置swap分区,配置SSH免密登陆 1.软件更新 CentOS 7很多自带类库比较老旧,使用前可根据需要更新。 更新自带类库命令 2.配置swap分区 购买的云主机配置较低,因此开启swap还是很有必要的。阿里云默认没有开
2019-08-31T10:51:00Z
2019-08-31T10:51:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】阿里云CentOS 7常用软件安装配置 [TOC] 基础配置 包含软件更新,配置swap分区,配置SSH免密登陆 1.软件更新 CentOS 7很多自带类库比较老旧,使用前可根据需要更新。 更新自带类库命令 2.配置swap分区 购买的云主机配置较低,因此开启swap还是很有必要的。阿里云默认没有开 <a href="https://www.cnblogs.com/reboot777/p/11440065.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11438905.html
阿里云云主机添加swap分区 - reboot777
如何启用swap分区? 步骤如下: 1.查看当前系统中是否已经启用swap分区 2.如果没有启用swap分区功能,则新建一个专门的文件用于swap分区 注:此文件的大小是count的大小乘以bs大小,上面命令的大小是4294971392,即4GB 3.通过mkswap命令将上面新建出的文件做成swa
2019-08-31T06:22:00Z
2019-08-31T06:22:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】如何启用swap分区? 步骤如下: 1.查看当前系统中是否已经启用swap分区 2.如果没有启用swap分区功能,则新建一个专门的文件用于swap分区 注:此文件的大小是count的大小乘以bs大小,上面命令的大小是4294971392,即4GB 3.通过mkswap命令将上面新建出的文件做成swa <a href="https://www.cnblogs.com/reboot777/p/11438905.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11438753.html
go mod 踩坑笔记 - reboot777
golang有很多非官方的包管理工具像govendor,gvt,dep等。go mod是官方在1.11版后推出的golang包管理工具。目前可用,但坑较多,, 1.包路径中含有大写字母时导致go mod tidy,go mod download等命令无法使用。 解决方法: go.mod中添加repl
2019-08-31T05:48:00Z
2019-08-31T05:48:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】golang有很多非官方的包管理工具像govendor,gvt,dep等。go mod是官方在1.11版后推出的golang包管理工具。目前可用,但坑较多,, 1.包路径中含有大写字母时导致go mod tidy,go mod download等命令无法使用。 解决方法: go.mod中添加repl <a href="https://www.cnblogs.com/reboot777/p/11438753.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11305527.html
Nuxt.js 国际化(i18n) 同级目录多个动态路由踩坑记 - reboot777
需求 :默认语言访问根目录的_feed,其它语言访问_lang下路由 问题 :默认语言路由 与 其它语言路由 模式一样,导致匹配是只能匹配其中一个 解决办法(目前想到的办法) : 去掉默认访问语言,所有的路由都放到_lang下如下:
2019-08-05T13:02:00Z
2019-08-05T13:02:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】需求 :默认语言访问根目录的_feed,其它语言访问_lang下路由 问题 :默认语言路由 与 其它语言路由 模式一样,导致匹配是只能匹配其中一个 解决办法(目前想到的办法) : 去掉默认访问语言,所有的路由都放到_lang下如下: <a href="https://www.cnblogs.com/reboot777/p/11305527.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11299722.html
webstorm调试nuxt.js - reboot777
nuxt.config.js中加上 debug模式走起
2019-08-04T13:02:00Z
2019-08-04T13:02:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】nuxt.config.js中加上 debug模式走起 <a href="https://www.cnblogs.com/reboot777/p/11299722.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11253582.html
Nginx配置之:http请求转换为https - reboot777
Nginx 全站https 反向代理 Tomcat 遇到静态文件.js,.css文件仍走http,出现block all mixed content错误时,可使用CSP指令将http资源转换为https 关键配置为: 完整配置:
2019-07-26T16:22:00Z
2019-07-26T16:22:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】Nginx 全站https 反向代理 Tomcat 遇到静态文件.js,.css文件仍走http,出现block all mixed content错误时,可使用CSP指令将http资源转换为https 关键配置为: 完整配置: <a href="https://www.cnblogs.com/reboot777/p/11253582.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/11164193.html
Hexo + Github page博客 themes/next 文件夹因存在.git而无法提交到git的解决办法 - reboot777
无法提交根本原因是next主题也是一个repo。 解决方法: 1.剪切 themes/next/.git文件夹到其它处 2.从暂存区删除该文件夹 3.使用git status查看状态 4.三步走: -->git add . -->git commit -m "" -->git push 5.再移回t
2019-07-10T07:23:00Z
2019-07-10T07:23:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】无法提交根本原因是next主题也是一个repo。 解决方法: 1.剪切 themes/next/.git文件夹到其它处 2.从暂存区删除该文件夹 3.使用git status查看状态 4.三步走: -->git add . -->git commit -m "" -->git push 5.再移回t <a href="https://www.cnblogs.com/reboot777/p/11164193.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10985731.html
centos7安装golang环境 - reboot777
1.下载golang安装包 2.解压至/usr/local文件夹 2.配置环境变量vim /etc/profile source /etc/profile使修改生效. 3.测试结果 创建文件夹
2019-06-06T08:28:00Z
2019-06-06T08:28:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.下载golang安装包 2.解压至/usr/local文件夹 2.配置环境变量vim /etc/profile source /etc/profile使修改生效. 3.测试结果 创建文件夹 <a href="https://www.cnblogs.com/reboot777/p/10985731.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10985420.html
centos7安装配置docker - reboot777
1. 安装/升级Docker客户端 Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。 从 2017 年 3 月开始 docker 在原来的基础上分为两个分支版本: Docker CE 和 Docker EE。
2019-06-06T07:53:00Z
2019-06-06T07:53:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1. 安装/升级Docker客户端 Docker 要求 CentOS 系统的内核版本高于 3.10 ,查看本页面的前提条件来验证你的CentOS 版本是否支持 Docker 。 从 2017 年 3 月开始 docker 在原来的基础上分为两个分支版本: Docker CE 和 Docker EE。 <a href="https://www.cnblogs.com/reboot777/p/10985420.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10926106.html
Windows平台Anaconda使用笔记 - reboot777
1.官网下载anaconda安装. 2.将命令行工具路径加入系统环境变量 打开CMD,输入conda --vsersion如能正确显示版本号则环境变量设置成功 3.更新navigator,执行 4.更新conda工具包,使用命令 5.激活虚拟环境 (1).激活默认环境 (2).创建新的虚拟环境dev
2019-05-26T07:05:00Z
2019-05-26T07:05:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.官网下载anaconda安装. 2.将命令行工具路径加入系统环境变量 打开CMD,输入conda --vsersion如能正确显示版本号则环境变量设置成功 3.更新navigator,执行 4.更新conda工具包,使用命令 5.激活虚拟环境 (1).激活默认环境 (2).创建新的虚拟环境dev <a href="https://www.cnblogs.com/reboot777/p/10926106.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10812726.html
docker compose容器互联 - reboot777
使用docker-compose编排容器时,如容器之间需要互相通信,使用本地连接,需要使用容器名来代替localhost 连接串中的localhost需要替换成postgresql容器名 即
2019-05-05T06:08:00Z
2019-05-05T06:08:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】使用docker-compose编排容器时,如容器之间需要互相通信,使用本地连接,需要使用容器名来代替localhost 连接串中的localhost需要替换成postgresql容器名 即 <a href="https://www.cnblogs.com/reboot777/p/10812726.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10798285.html
docker-compose部署mysql配置 - reboot777
docker-compose部署mysql配置文件如下
2019-04-30T14:12:00Z
2019-04-30T14:12:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】docker-compose部署mysql配置文件如下 <a href="https://www.cnblogs.com/reboot777/p/10798285.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10384513.html
python魔法方法实现对象'+'操作符 - reboot777
python对象重写__add__,__radd__方法即可实现'+'操作符 demo: 输出结果: 15 注意: 如果 a 有 __add__ 方法, 而且返回值不是 NotImplemented, 调用a.__add__(b), 然后返回结果。如果 a 没有 __add__ 方法, 或者调用 _
2019-02-15T08:51:00Z
2019-02-15T08:51:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】python对象重写__add__,__radd__方法即可实现'+'操作符 demo: 输出结果: 15 注意: 如果 a 有 __add__ 方法, 而且返回值不是 NotImplemented, 调用a.__add__(b), 然后返回结果。如果 a 没有 __add__ 方法, 或者调用 _ <a href="https://www.cnblogs.com/reboot777/p/10384513.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10384396.html
python获取函数参数默认值的两种方法 - reboot777
1.使用函数的__defaults__魔术方法 demo: 输出结果: 2.使用inspect模块 使用inspect.getargspec获取 输出结果:
2019-02-15T08:35:00Z
2019-02-15T08:35:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.使用函数的__defaults__魔术方法 demo: 输出结果: 2.使用inspect模块 使用inspect.getargspec获取 输出结果: <a href="https://www.cnblogs.com/reboot777/p/10384396.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10305106.html
Haproxy配置之URL重写,支持Websocket - reboot777
配置文件位置: /etc/haproxy/haproxy.cfg 关键点: Reqrep 正则重写URL 解决的问题场景: 负载均衡机器出口端口统一为80,代理后台API,Docs,Websocket,Web页面四个服务,服务端口不一。 最终实现结果: 配置详情:
2019-01-22T09:45:00Z
2019-01-22T09:45:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】配置文件位置: /etc/haproxy/haproxy.cfg 关键点: Reqrep 正则重写URL 解决的问题场景: 负载均衡机器出口端口统一为80,代理后台API,Docs,Websocket,Web页面四个服务,服务端口不一。 最终实现结果: 配置详情: <a href="https://www.cnblogs.com/reboot777/p/10305106.html" target="_blank">阅读全文</a>
https://www.cnblogs.com/reboot777/p/10304659.html
sqlalchemy orm数据类型校验的几种方法 - reboot777
1.在定义ORM模型时校验 sqlalchemy提供validates函数支持对字段的校验 2.全局校验 ①.根据sqlalchemy数据类型对应的python_type(注:有些数据类型没有实现python_type这个方法,需重写) 在进行增改.commit()之前,对传入数据校验.字段的数据类
2019-01-22T08:44:00Z
2019-01-22T08:44:00Z
reboot777
https://www.cnblogs.com/reboot777/
【摘要】1.在定义ORM模型时校验 sqlalchemy提供validates函数支持对字段的校验 2.全局校验 ①.根据sqlalchemy数据类型对应的python_type(注:有些数据类型没有实现python_type这个方法,需重写) 在进行增改.commit()之前,对传入数据校验.字段的数据类 <a href="https://www.cnblogs.com/reboot777/p/10304659.html" target="_blank">阅读全文</a>