美文网首页
mac环境下安装tengine

mac环境下安装tengine

作者: 晴岚_693e | 来源:发表于2019-07-18 16:19 被阅读0次

1.下载 tengine

2.下载 openssl

3.下载pcre

4.cd [tengine所在目录]/tengine

5. $ ./configure --with-pcre=[pcre所在目录]/pcre  --with-openssl-opt=darwin64-x86_64-cc --with-openssl=[openssl所在目录]/openssl

6. $ export KERNEL_BITS=64

7. 修改objs/Makefile文件,修改把./config替换成./Configure darwin64-x86_64-cc 并

8.修改objs/Makefile文件,去掉install_sw

9.编译,调用  sudo make

10.编译成功后安装,调用  sudo make install

11.检测是否有nginx命令,如果没有,调用:sudo ln -s /usr/local/tengine/sbin/nginx /usr/bin/nginx

12.启动,调用  sudo nginx

13.访问127.0.0.1

14.开启Rootles csrutil enable

相关文章

网友评论

      本文标题:mac环境下安装tengine

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