会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
IWS
Talk is cheap. Show me the code. -- Torvalds, Linus (2000-08-25).
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
24
下一页
2020年7月24日
gogs: 进入Docker实例并修改MySQL帐号
摘要: 迫于修改了MySQL的帐号,所以要对gogs的实例中的数据库配置进行修改,步骤如下: 1. docker exec -it ccdc4e9f2c23 /bin/bash 2. cd /data/gogs/conf 3. vi app.ini 4. 修改database的配置,保存并退出vi 5. 重
阅读全文
posted @ 2020-07-24 18:31 GreatK
阅读(710)
评论(0)
推荐(0)
2020年6月1日
macOS USB连接iPhone反复重连解决方法
摘要: sudo killall -STOP -c usbd但是电脑重启后会需要重新键入这条命令
阅读全文
posted @ 2020-06-01 13:14 GreatK
阅读(592)
评论(0)
推荐(0)
2020年1月10日
MacOS: 找到被占用的端口并释放
摘要: 1. sudo lsof -i :<port number>2. kill -9 <PID>
阅读全文
posted @ 2020-01-10 11:05 GreatK
阅读(1142)
评论(0)
推荐(1)
2019年9月23日
解决rust编译包含diesel类库时,cannot find -lmysqlclient的错误
摘要: Centos 7 yum install mysql-devel
阅读全文
posted @ 2019-09-23 17:24 GreatK
阅读(635)
评论(0)
推荐(0)
2019年8月27日
解决MySQL在导入大文件时候,出现MySQL Server has gone away的问题
摘要: 编辑/etc/my.cnf文件,在[myslqd]节点,添加 max_allowed_packet = 64M 随后重启MySQL即可。
阅读全文
posted @ 2019-08-27 10:46 GreatK
阅读(396)
评论(0)
推荐(0)
2019年7月25日
一键部署YApi
摘要: 编写docker-compose.yml 随后执行docker-compose up即可。默认密码为ymfe.org。 感谢作者:https://github.com/jinfeijie/yapi
阅读全文
posted @ 2019-07-25 17:35 GreatK
阅读(657)
评论(0)
推荐(0)
2019年5月31日
iOS: 解决Asset Catalog Compile Error - TDDIstiller instance can only be distilled only one time的错误
摘要: 执行命令:rm -rf /Users/<用户名>/Library/Developer/Xcode/DerivedData 然后重新编译项目即可。
阅读全文
posted @ 2019-05-31 10:20 GreatK
阅读(758)
评论(0)
推荐(0)
2019年5月24日
一句话从MySQL导出CSV文件
摘要: mysql -h <host> -u<user> -p<passport> crm -e "select ....." | csvcut -t > output.csv 如果没有csvcut,需要先通过pip安装 pip install csvkit
阅读全文
posted @ 2019-05-24 11:12 GreatK
阅读(567)
评论(0)
推荐(0)
2019年5月7日
Java: 创建自带依赖库的Jar包
摘要: pom.xml文件如下: 随后输入打包命令: mvn clean compile assembly:single 这时在target目录下就会生成对应的Jar包文件了。
阅读全文
posted @ 2019-05-07 09:18 GreatK
阅读(1140)
评论(0)
推荐(0)
2019年4月2日
InfluxDB useful commands
摘要: InfluxDB 配置文件地址:/etc/influxdb/influxdb.conf 通过curl写数据 curl -i -XPOST 'http://localhost:8086/write?db=mydb' --data-binary 'cpu_load_short,host=server01
阅读全文
posted @ 2019-04-02 10:25 GreatK
阅读(131)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
24
下一页
公告