zoukankan      html  css  js  c++  java
  • ubuntu 安装swoole

    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
  • 相关阅读:
    python基础代码2
    将博客搬至CSDN
    Python基础代码1
    使用函数处理数据
    创建计算字段
    用通配符进行过滤
    高级过滤数据
    过滤数据
    模式与架构
    工厂方法模式和简单工厂模式的选折
  • 原文地址:https://www.cnblogs.com/goldenstones/p/9568358.html
Copyright © 2011-2022 走看看