没想到安装个mkcert还挺麻烦的,在网上找到教程,基本上都是直接brew install mkcert,但是这个brew基本上是mac专属命令,当然安装到linux上之后提示不能以root权限运行brew,-_-||。

按照mkcert Github上的安装说明通过源码安装,又首先需要安装go,安装完之后又提示有其他问题,终于发现了这个mkcert的预构建版本。

在centos下安装命令大致如下:

wget https://github.com/FiloSottile/mkcert/releases/download/v1.4.2/mkcert-v1.4.2-linux-amd64
cp mkcert-v1.4.2-linux-amd64 /usr/local/bin/mkcert
chmod +x /usr/local/bin/mkcert
ln -snvf /usr/local/bin/mkcert /usr/bin/mkcert

评论




博客内容遵循 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议

本站使用 Volantis 作为主题,总访问量为
载入天数...载入时分秒...
冀ICP备20001334号