Command Palette
Search for a command to run...
OpenWrt开机自启动时间校准ntpd服务
理论上,OpenWrt 自带的时钟同步服务sysntpd应该是开机自启的,但是在某些设备遇到了开机不自启的问题,干脆使用原生的ntpd服务。 在\etc\rc.local文件中最后一行的exit 0之前写入: bash ntpd -p ntp.aliyun.com -p表示从指定服务器获取时间。该命令运行后会生成守护进程ntpd,可以通过ps命令查看: bash ps | grep ntp 注:若...
Mac安装PHP(Homebrew/php弃用、其他第三方tap也已经弃用或者迁移后的安装配置方案)
一、前言 看网上很多资料,大多数都是 mac安装php,只需要: bash brew tap homebrew/php brew install phpXX 安装php扩展只需要: bash brew install phpXX-phpExtension 但是执行上面两条命令的时候都会抛出error: text homebrew/dupes was deprecated. This tap is ...


GitLab与Git与Webhook与宝塔的结合
安装git 生成密钥SSH-key bash git config --global user.name "mingzi" git config --global user.email "[email protected]" 注意替换为自己注册的邮箱 ssh-keygen -t rsa -C "你注册gitlab的邮箱" 然后一路默认enter,即可生成密钥 gitlab添加SSH密钥 复制id\_rsa...