码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 安装swoole

时间:2018-08-31 21:54:46      阅读:253      评论:0      收藏:0      [点我收藏+]

标签:pretty   Opens   code   configure   src   resolve   mysql   lease   enable   

 

wget https://github.com/nghttp2/nghttp2/releases/download/v1.30.0/nghttp2-1.30.0.tar.bz2
tar -jxvf nghttp2-1.30.0.tar.bz2
cd nghttp2-1.30.0
./configure
make


wget https://github.com/redis/hiredis/archive/v0.13.3.tar.gz
tar -zxvf v0.13.3.tar.gz
cd hiredis-0.13.3/
make -j
sudo make install
sudo ldconfig

 

 

mkdir -p ~/build && cd ~/build && rm -rf ./swoole-src && curl -o ./tmp/swoole.tar.gz https://github.com/swoole/swoole-src/archive/master.tar.gz -L && \
tar zxvf ./tmp/swoole.tar.gz && mv swoole-src* swoole-src && cd swoole-src && phpize && ./configure --enable-coroutine --enable-openssl  --enable-http2  --enable-async-redis --enable-sockets --enable-mysqlnd && make clean && make && sudo make install

 

如果ubuntu修改文件的时候一直提示:

sudo:unable to resolve host abc
  • 1

那么就需要修改/etc/hosts文件: 
如果之前为

127.0.0.1 localhost
  • 1

变更为:

127.0.0.1 localhost
127.0.1.1 hostname

ubuntu 安装swoole

标签:pretty   Opens   code   configure   src   resolve   mysql   lease   enable   

原文地址:https://www.cnblogs.com/goldenstones/p/9568358.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!