03 2023 档案
Linux ssh权限被修改问题修复
摘要:测试:/usr/sbin/sshd -T 配置: sh "chown root:root /etc/sudo.conf -R" sh "chown -R root:root /etc/sudoers.d" sh "chown root:root /etc/sudoers" sh "chown -R 阅读全文
posted @ 2023-03-17 15:38 聪神carry 阅读(162) 评论(0) 推荐(0)
Golang获取当前项目绝对路径问题
摘要:转载自:https://mp.weixin.qq.com/s/5biKspJu8Hmxsert2liUtg 导读 由于Golang是编译型语言(非脚本型语言),如果你想在Golang程序中获取当前执行目录将是一件非常蛋疼的事情。以前大家最折中的解决方案就是通过启动传参或是环境变量将路径手动传递到程序 阅读全文
posted @ 2023-03-16 16:42 聪神carry 阅读(450) 评论(0) 推荐(0)
Makefile 规则
摘要:1.make 后面不带参数 默认执行的是第一个目标,而不是default,如下: $ make test $ cat Makefile test: @echo " test " default: @echo " default " deploy: @echo " deploy " clean: @e 阅读全文
posted @ 2023-03-10 11:31 聪神carry 阅读(57) 评论(0) 推荐(0)