美文网首页
安装theos到/opt/theos

安装theos到/opt/theos

作者: XLsn0w | 来源:发表于2020-04-28 09:16 被阅读0次

安装Thoes

之前我们把Theos安装在/opt/theos,现在我们还是安装在这个文件夹。

sudo git clone --recursive https://github.com/theos/theos.git /opt/theos

然后把/opt/theos的权限改成你自己:

sudo chown $(id -u):$(id -g) /opt/theos

最后这一步也很重要,要把theos的执行路径加入到环境变量之中,在~./bash_profile中加上这么两句:

export THEOS=/opt/theos

export PATH=/opt/theos/bin/:$PATH

最终~./bash_profile会长这样:

截屏2020-04-28 上午9.16.29.png

相关文章

网友评论

      本文标题:安装theos到/opt/theos

      本文链接:https://www.haomeiwen.com/subject/tdbmwhtx.html