Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of swoole installation

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the relevant knowledge of the method of swoole installation, the content is detailed and easy to understand, the operation is simple and fast, and has a certain reference value. I believe you will gain something after reading this article on the method of swoole installation. Let's take a look at it.

Full record of swoole installation

The PHP PPA of the Ond ej Sur arrow provides the PHP7.2 version for Ubuntu 16.04 PHP7.2 14.04. The PHP installed by the software source runs at / run/php/php7.2-fpm.sock by default in the state of Unix Socket, which performs better than using TCP in the localhost:9000 way.

1. Install software source extension tools: apt- y install software-properties-common apt-transport-https lsb-release ca-certificates2, add PHP PPA sources and update cache add-apt-repository ppa:ondrej/php & apt update3, install php7.2 and basic related extensions apt install php7.2-fpm php7.2-mysql php7.2-curl php7.2-gd php7.2-mbstring php7.2-xml php7.2-xmlrpc php7.2-zip php7.2-opcache php7.2-dev-y4, See what source apt-cache search php7.2 is available for direct installation from the current PPA source

Php-radis-radis client library for PHP

Php-http-PECL HTTP module for PHP Extended HTTP Support

Php-uploadprogress-file uploadprogress tracking extension for PHP

Php-yaml-YAML-1.1 parser and emitter for PHP

Php-mongodb-MongoDB driver for PHP

Php-apcu-APC User Cache for PHP

Php-imagick-Provides a wrapper to the ImageMagick library

Php-ssh3-Bindings for the libssh3 library

Php-redis-PHP extension for interfacing with Redis

Php-memcached-memcached extension module for PHP, uses libmemcached

Php-apcu-bc-APCu Backwards Compatibility Module

Php-rrd-PHP bindings to rrd tool system

Php-uuid-PHP UUID extension

Php-memcache-memcache extension module for PHP

Php-zmq-ZeroMQ messaging bindings for PHP

Php-igbinary-igbinary PHP serializer

Php-msgpack-PHP extension for interfacing with MessagePack

Php-geoip-GeoIP module for PHP

Php-tideways-Tideways PHP Profiler Extension

Php-yac-YAC (Yet Another Cache) for PHP

Php-mailparse-Email message manipulation for PHP

Php-oauth-OAuth 1.0 consumer and provider extension

Php-gnupg-PHP wrapper around the gpgme library

Php-propro-propro module for PHP

Php-raphf-raphf module for PHP

Php-solr-PHP extension for communicating with Apache Solr server

Php-stomp-Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP

Php-gearman-PHP wrapper to libgearman

Php-phalcon-full-stack PHP framework delivered as a C-extension

Php-ds-PHP extension providing efficient data structures for PHP 7

Php-sass-PHP bindings to libsass-fast, native Sass parsing in PHP

Php-lua-PHP Embedded lua interpreter

Libapache2-mod-php7.2-server-side, HTML-embedded scripting language (Apache 2 module)

Libphp7.2-embed-HTML-embedded scripting language (Embedded SAPI library)

Php7.2-bcmath-Bcmath module for PHP

Php7.2-bz2-bzip2 module for PHP

Php7.2-cgi-server-side, HTML-embedded scripting language (CGI binary)

Php7.2-cli-command-line interpreter for the PHP scripting language

Php7.2-common-documentation, examples and common module for PHP

Php7.2-curl-CURL module for PHP

Php7.2-dba-DBA module for PHP

Php7.2-dev-Files for PHP7.2 module development

Php7.2-enchant-Enchant module for PHP

Php7.2-fpm-server-side, HTML-embedded scripting language (FPM-CGI binary)

Php7.2-gd-GD module for PHP

Php7.2-gmp-GMP module for PHP

Php7.2-imap-IMAP module for PHP

Php7.2-interbase-Interbase module for PHP

Php7.2-intl-Internationalisation module for PHP

Php7.2-json-JSON module for PHP

Php7.2-ldap-LDAP module for PHP

Php7.2-mbstring-MBSTRING module for PHP

Php7.2-mysql-MySQL module for PHP

Php7.2-odbc-ODBC module for PHP

Php7.2-opcache-Zend OpCache module for PHP

Php7.2-pgsql-PostgreSQL module for PHP

Php7.2-phpdbg-server-side, HTML-embedded scripting language (PHPDBG binary)

Php7.2-pspell-pspell module for PHP

Php7.2-readline-readline module for PHP

Php7.2-recode-recode module for PHP

Php7.2-snmp-SNMP module for PHP

Php7.2-soap-SOAP module for PHP

Php7.2-sqlite3-SQLite3 module for PHP

Php7.2-sybase-Sybase module for PHP

Php7.2-tidy-tidy module for PHP

Php7.2-xml-DOM, SimpleXML, WDDX, XML, and XSL module for PHP

Php7.2-xmlrpc-XMLRPC-EPI module for PHP

Php7.2-zip-Zip module for PHP

Php7.2-xsl-XSL module for PHP (dummy)

Php7.2-server-side, HTML-embedded scripting language (metapackage)

Php7.2-sodium-libsodium module for PHP5, after choosing to install the redis igbinary pear extension php7, each extension is a separate ini file. The php extensions installed this time are all apt install php-redis php-igbinary php-pear under / etc/php/7.2/mods-available.

Ls / etc/php/7.2/mods-available

Calendar.ini fileinfo.ini igbinary.ini opcache.ini readline.ini

Sysvmsg.ini xml.ini zip.ini ctype.ini ftp.ini

Json.ini pdo.ini redis.ini

Sysvsem.ini xmlreader.ini

Curl.ini gd.ini mbstring.ini pdo_mysql.ini shmop.ini

Sysvshm.ini xmlrpc.ini

Dom.ini gettext.ini mysqli.ini phar.ini simplexml.ini

Tokenizer.ini xmlwriter.ini

Exif.ini iconv.ini mysqlnd.ini posix.ini sockets.ini

Wddx.ini xsl.ini6, install nghttp2 library apt install nghttp2 libnghttp2-dev7, install Redis official asynchronous extension hiredis, if you report an error, you need to add system gcc to support git clone https://github.com/redis/hire...

Cd hiredis

Make-j

If you report an error and try to install gcc

Apt install gcc

Recompile

Make-j

Make install

Ldconfig8 and swoole expand compilation and installation. Pecl install swoolepecl is not recommended for installation. No compilation of http2 and hiredis supports gcc-4.4 or higher makeautoconfpcre (centos system can execute command: yum install pcre-devel) git clone https://gitee.com/swoole/swoo...

Cd swoole

Phpize

. / configure-enable-http2-enable-async-redis

Make & & make install9, add swoole extension to php environment echo 'extension=swoole.so' > > / etc/php/7.2/mods-available/swoole.ini

Cd / etc/php/7.2/cli/conf.d/ & & ln-s.. /.. / mods-available/swoole.ini 20-swoole.ini

Cd / etc/php/7.2/fpm/conf.d/ & & ln-s. /.. / mods-available/swoole.ini 20-swoole.ini10, check whether php is referenced successfully-- ri swoole

Swoole support = > enabled

Version = > 2.1.2-alpha

Author = > tianfeng.han [email: mikan.tenny@gmail.com]

Coroutine = > enabled

Epoll = > enabled

Eventfd = > enabled

Timerfd = > enabled

Signalfd = > enabled

Cpu affinity = > enabled

Spinlock = > enabled

Rwlock = > enabled

Async redis client = > enabled

Async http/websocket client = > enabled

Openssl = > enabled

Http2 = > enabled

Linux Native AIO = > enabled

Pcre = > enabled

Mutex_timedlock = > enabled

Pthread_barrier = > enabled

Futex = > enabled

Directive = > Local Value = > Master Value

Swoole.aio_thread_num = > 2 = > 2

Swoole.display_errors = > On = > On

Swoole.use_namespace = > On = > On

Swoole.use_shortname = > On = > On

Swoole.fast_serialize = > Off = > Off

Swoole.unixsock_buffer_size = > 8388608 = > 8388608

So far, it's all complete.

This is the end of this article on "how to install swoole". Thank you for reading! I believe you all have a certain understanding of the "method of swoole installation". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report