Mac下Core Shell 使用lrzsz命令,上传,下载文件 新增~/.bashrc_Core_Shell # Bash support for Core Shell, reference: /etc/bashrc_Apple_Terminal on macOS # Report Working ...
分类:
系统相关 时间:
2021-04-20 15:02:28
阅读次数:
0
Gogs私有git仓库 + Drone构建CI/CD平台 参考便捷搭建教程:https://github.com/alicfeng/gogs_drone_docker 前提 安装有docker、docker-compose 安装有git 安装有mysql 使用docker-compose安装gogs ...
分类:
其他好文 时间:
2021-04-20 14:32:57
阅读次数:
0
1、关闭MySQL [root@mysql ~]# /etc/init.d/mysqld stopShutting down MySQL.. SUCCESS! 2、修改参数文件/etc/my.cnf [root@mysql ~]# cat /etc/my.cnf[mysqld] port=3306 ...
分类:
数据库 时间:
2021-04-20 14:29:49
阅读次数:
0
原因是因为没有添加环境变量。 因为运行XAMPP需要root权限,所以我们可以先切换为root用户,然后在/root/.bashrc文件的最后一行添加: PATH=$PATH:/opt/lampp/bin 执行命令: source .bashrc 现在就可以直接执行mysql的命令了 ...
分类:
数据库 时间:
2021-04-20 14:19:57
阅读次数:
0
1. 打开Navicat for MySQL: 2. 新建一个连接,填写连接信息: 连接名称:用于区分不同的连接,自己命名即可 主机名:localhost 端口:3306 用户名:root 密码:123456(之前配置mysql的时候填写的密码) 3. 点击“连接测试”按钮,弹出连接成功对话框即表示 ...
分类:
数据库 时间:
2021-04-20 14:05:30
阅读次数:
0
1. 修改本地hosts文件 windows系统的hosts文件的位置如下:C:\Windows\System32\drivers\etc\hosts mac/linux系统的hosts文件的位置如下:/etc/hosts 2. 增加http://github.global.ssl.fastly.n ...
分类:
其他好文 时间:
2021-04-19 15:45:32
阅读次数:
0
每隔 0.5 秒输出当前 .git 目录的文件 watch -n .5 "tree .git" 需要安装 watch 和 tree 命令, brew install watch brew install tree ...
分类:
系统相关 时间:
2021-04-19 15:36:48
阅读次数:
0
mysql开启命令行日志(可以记录source等的日志) mysql> tee hello.log mysql>select now() ; mysql>exit; //退出mysql 客户端 查看 hello.log 文件内容如下: mysql> select now(); 用法如下: Step ...
分类:
数据库 时间:
2021-04-19 15:24:58
阅读次数:
0
前言: 手写GO用反射读取ini配置文件。 实例代码: package main import ( "errors" "fmt" "io/ioutil" "reflect" "strconv" "strings" ) // ini配置文件解析器 // MysqlConfig MySQL配置结构体 t ...
分类:
其他好文 时间:
2021-04-19 15:03:58
阅读次数:
0
mac 上build go 如果想要在centos上面执行 必须使用下面的方式 CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o hello hello.go 不然会报错 :cannot execute binary file ...
分类:
其他好文 时间:
2021-04-19 14:58:20
阅读次数:
0