2025年5月26日
摘要:
编译所需依赖 binutils ,gmp,mpc, gcc ,isl , make, mpfr ,在下面的网址下载,并编译: https://ftp.gnu.org/gnu/ 编译时 设置路径 为对应的软件包名称,后续要用到这个名字 如binutils: ./configure --prefix=/
阅读全文
posted @ 2025-05-26 18:26
小朱配齐
阅读(748)
推荐(0)
2025年3月25日
摘要:
升级完 glibc 后,在命令行执行locale后提示: // locale: Cannot set LC_CTYPE to default locale: No such file or directory // locale: Cannot set LC_MESSAGES to default
阅读全文
posted @ 2025-03-25 14:27
小朱配齐
阅读(93)
推荐(0)
2024年9月27日
摘要:
命令 标准输出 错误输出 > /dev/null 2>&1 丢弃 丢弃 2>&1 > /dev/null 丢弃 屏幕 2> /dev/null 屏幕 丢弃
阅读全文
posted @ 2024-09-27 20:42
小朱配齐
阅读(22)
推荐(0)
2024年9月12日
摘要:
数值比较 比较 描述 n1 -eq n2 n1是否与n2相等 nl -ge n2 n1是否大于或等于n2 n1 -gt n2 n1是否大于n2 n1 -le n2 n1是否小于或等于n2 n1 -lt n2 n1是否小于n2 nl -ne n2 n1是否不等于n2 字符串比较 比较 描述 str1
阅读全文
posted @ 2024-09-12 19:08
小朱配齐
阅读(32)
推荐(0)
2024年8月9日
摘要:
setting.json中加入 // format 配置路径 "clang-format.assumeFilename": "${workspaceFolder}/.vscode/format/.clang-format", 配置路径放在:"${workspaceFolder}/.vscode/fo
阅读全文
posted @ 2024-08-09 14:06
小朱配齐
阅读(387)
推荐(0)
2023年6月14日
摘要:
开启微软输入法兼容模式就能解决问题
阅读全文
posted @ 2023-06-14 09:49
小朱配齐
阅读(647)
推荐(0)
2023年3月16日
摘要:
将 AppIndicator、KStatusNotifierItem 和旧版托盘图标支持添加到命令行管理程序 appindicator-support 拓展坞插件Dash to Dock cpu监控插件Vitals 窗口指示器Workspace Indicator 通知常驻Permanent not
阅读全文
posted @ 2023-03-16 21:00
小朱配齐
阅读(142)
推荐(0)
2022年12月15日
摘要:
报错内容 Failed to connect to bus: No such file or directory Error: Failure while executing; `/home/linuxbrew/.linuxbrew/bin/systemctl --user daemon-reloa
阅读全文
posted @ 2022-12-15 16:01
小朱配齐
阅读(168)
推荐(0)
2022年12月10日
摘要:
1. improt 内只要写文件名即可 2. 在编译路径中加两个路径 // xpb_public xpb_src两个文件都在同一级 不同的写具体路径,但是不要出现../ 应该从同./下开始 protoc -I ./xpb_public/ -I ./xpb_src/ --go_out=./ ./xpb
阅读全文
posted @ 2022-12-10 11:11
小朱配齐
阅读(264)
推荐(0)
2022年11月13日
摘要:
lo # loopback 本机主机地址 # flag=8049:网络设备状态标识 # UP:网卡处于启动状态 # LOOPBACK:IP数据包回送到本机上,通常用于测试网络配置和本地程序之间通信用 # RUNNING:代表网卡的网线被接上 # MULTICAS:网卡可以发送多播包 # mtu:最大
阅读全文
posted @ 2022-11-13 15:08
小朱配齐
阅读(1020)
推荐(0)
摘要:
查看网卡信息 $ ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00
阅读全文
posted @ 2022-11-13 15:00
小朱配齐
阅读(582)
推荐(0)
2022年11月12日
摘要:
创建密钥 ssh-keygen -m PEM -t rsa -b 4096 参数: -m PEM = 密钥格式 PEM -t rsa 要创建的密钥类型,本例中为 RSA 格 "rsa1"(SSH-1) "rsa"(SSH-2) "dsa"(SSH-2) -b 4096 密钥的位数,本例中为 4096
阅读全文
posted @ 2022-11-12 12:31
小朱配齐
阅读(180)
推荐(0)
2022年11月10日
posted @ 2022-11-10 20:48
小朱配齐
阅读(405)
推荐(0)
2022年7月23日
摘要:
本地有代码 则运行: git add file git stash 记录stash编号 方便恢复例如:stash@{0} 先本地回退到相应的版本 一次:(不需要保存代码soft换成hard) git reset --soft HEAD^ 多次:(N次) git reset --soft HEAD~N
阅读全文
posted @ 2022-07-23 17:44
小朱配齐
阅读(312)
推荐(0)
2022年7月20日
摘要:
默认root下执行 在虚拟机设备安装安装增强功能 在虚拟机内加载增强功能安装包 mount /dev/cdrom /media/cdrom 运行安装命令 apt-get install build-essential linux-headers-`uname -r` cd /media/cdrom
阅读全文
posted @ 2022-07-20 22:23
小朱配齐
阅读(137)
推荐(0)
摘要:
. ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/xx.local.pid). ERROR! Failed to stop running server, so refusing to try to
阅读全文
posted @ 2022-07-20 09:02
小朱配齐
阅读(99)
推荐(0)
摘要:
在/opt/homebrew/etc下修改my.cnf,增加一行 skip-grant-tables 重启mysql 进入mysql,直接回车不用输入密码 mysql -u root -p 刷新权限(一定要) flush privileges; 修改密码 use mysql; alter user'
阅读全文
posted @ 2022-07-20 08:57
小朱配齐
阅读(232)
推荐(0)
2022年7月11日
摘要:
查看当前用户 use mysql; select current_user(); 或者: select User, authentication_string , Host from user; 查看权限 show grants for 'user'@'ip'; 或者 show grants; 创建
阅读全文
posted @ 2022-07-11 10:31
小朱配齐
阅读(450)
推荐(0)
2022年6月11日
摘要:
原文 https://kalacloud.com/blog/how-to-allow-remote-access-to-mysql/ 我们经常会碰到需要远程访问数据库的场景,比如使用 Sequel Ace 等本地工具远程连接,又或者,网站与数据库分离,服务器远程访问数据库等场景。默认情况下,MySQ
阅读全文
posted @ 2022-06-11 11:57
小朱配齐
阅读(2238)
推荐(0)
摘要:
原文:https://kalacloud.com/blog/how-to-create-a-new-user-and-grant-permissions-in-mysql/ 1.如何创建新用户 首先我们使用 root 账号登录 MySQL Server: mysql -u root -p 登录成功后
阅读全文
posted @ 2022-06-11 11:51
小朱配齐
阅读(864)
推荐(0)
2022年2月1日
摘要:
检查linux-header是否正确 apt install linux-headers-$(uname -r)
阅读全文
posted @ 2022-02-01 22:45
小朱配齐
阅读(123)
推荐(0)
2020年2月24日
摘要:
错误: root@debian:/home/zh# dpkg -i mysql-apt-config_0.8.15-1_all.deb dpkg: warning: 'ldconfig' not found in PATH or not executable dpkg: warning: 'star
阅读全文
posted @ 2020-02-24 11:17
小朱配齐
阅读(2199)
推荐(0)
2020年1月12日
摘要:
//管理员 Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere] @="Cmd" "Icon"="cmd.exe" [HKEY_CLASSES_ROOT\Directory\shell
阅读全文
posted @ 2020-01-12 16:48
小朱配齐
阅读(565)
推荐(0)
2019年12月3日
摘要:
在~/.ssh/config文件中加入 Host * # "*" 表示所有地址 ServerAliveInterval 10 #10秒无操作请求服务器响应 ServerAliveCountMax 3 # 3次无响应则断开连接
阅读全文
posted @ 2019-12-03 14:45
小朱配齐
阅读(411)
推荐(0)
2019年11月28日
摘要:
windows环境使用局部配置 Git常用的有两种协议 不同的协议他的代理配置各不相同。core.gitproxy 用于 git:// 协议,http.proxy 用于 http:// 协议。 常见的git clone 协议如下: 不走代理: #使用http://协议 git clone https
阅读全文
posted @ 2019-11-28 01:02
小朱配齐
阅读(2435)
推荐(0)
2019年11月24日
摘要:
git 撤销已经提交到远程服务器的commit: 一、使用git log查看需要撤回的commitId git log 二、撤销: 方式一: //撤销commit,但不修改代码 git reset commitId 方式二: //撤销commit,同时将代码恢复到对应ID的版本 git reset
阅读全文
posted @ 2019-11-24 15:37
小朱配齐
阅读(3096)
推荐(0)
2019年11月19日
摘要:
使用 Homebrew 安装 mysql,默认配置在 /usr/local/etc/my.cnf
阅读全文
posted @ 2019-11-19 17:34
小朱配齐
阅读(771)
推荐(0)
2019年11月9日
摘要:
解决方法: 将: HKEY_LOCAL_MACHINE\Software\Microsoft\Command Prosessor\CompletionChar键的值改为9,
阅读全文
posted @ 2019-11-09 22:27
小朱配齐
阅读(440)
推荐(0)
2019年10月26日
posted @ 2019-10-26 15:44
小朱配齐
阅读(1086)
推荐(0)
2019年10月12日
摘要:
转自:http://www.nginx.cn/76.html
阅读全文
posted @ 2019-10-12 11:43
小朱配齐
阅读(181)
推荐(0)