久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      詳細(xì)swoole安裝

      詳細(xì)swoole安裝

      推薦(免費(fèi)):swoole

      PHP版本: php7
      swoole版本: swoole(最新)
      服務(wù)器: CentOS 7.6

      swoole配置在Linux或者ios等類似于Unix環(huán)境中,Windows環(huán)境支持不好

      tar編譯安裝參考 : https://www.jianshu.com/p/0c0d19c36ed0

      編譯安裝參考: http://www.hu-rong.com/article/323

      https://blog.csdn.net/q85795362/article/details/85256206

      安裝swoole的步驟如下:

      準(zhǔn)備工作:

      1, 查看linux(這里以CentOS7.6為例)版本:

      [root@VM_6_21_centos ~]# cat /etc/redhat-release

      2,查看PHP版本

      [root@VM_6_21_centos ~]# php -v

      3,查看PHP安裝的擴(kuò)展

      [root@VM_6_21_centos ~]# php -m

      4,查看當(dāng)前所在的位置:

      [root@VM_6_21_centos ~]# pwd

      5, 安裝依賴包文件 # find / -name phpize 查找:phpize

      [root@VM_6_21_centos ~]# yum install php-devel      # 通過(guò)php的工具包添加擴(kuò)展,運(yùn)行命令:phpize                          yum install glibc-headers                            yum install gcc-c++                           yum install git            # git clone                          yum -y install nghttp2

      6,我是使用oneinstack集成環(huán)境安裝的lnmp

      php.ini 位置   :  /usr/local/php/etc/php.ini    或者  whereis php.ini

      開始安裝

      1,cd 到家目錄, 下載swoole

      [root@VM_6_21_centos ~]# git clone https://github.com/swoole/swoole-src.git[root@VM_6_21_centos ~]# ls[root@VM_6_21_centos ~]# mkdir /usr/local/swoole/

      2,拷貝 /root 目錄下的 swoole-src 到 /usr/local/swoole/

      [root@VM_6_21_centos ~]# cp -r /root/swoole-src/.  /usr/local/swoole/

      3, 我的PHP安裝的位置(php7.2.16) /usr/local/php/bin/php-config (具體情況具體對(duì)待)

      [root@VM_6_21_centos ~]#   cd  /usr/local/swoole/[root@VM_6_21_centos swoole]#  ./configure   --with-php-config=/usr/local/php/bin/php-config --enable-sockets --enable-openssl  --enable-http2        # 配置[root@VM_6_21_centos swoole]#  make clean && make && sudo make install   # 編譯安裝

      4,swoole.so 配置所在位置

      [root@VM_6_21_centos ~]# vim  /usr/local/php/etc/php.ini配置: extension =/usr/local/php/lib/php/extensions/no-debug-non-zts-20170718/swoole.so

      詳細(xì)swoole安裝

      修改了php配置需要平滑啟動(dòng)php-fpm[root@VM_6_21_centos ~]# ps -aux | grep php-fpm 找到phpfpm 的master process的進(jìn)程id[root@VM_6_21_centos ~]#   kill -SIGUSR2 process_id          #實(shí)現(xiàn)平滑重啟php-fpm

      詳細(xì)swoole安裝

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)