Get the App
SLTechnology News&Howtos  ›  Servers  › 

Example Analysis of easyswoole one-click installation script and Pagoda installation error

Shulou Source: shulou.com Published: 2022-06-01 11:34:28 11月17日 Update

This article mainly introduces the easyswoole one-click installation script and pagoda installation error example analysis, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let Xiaobian take you to understand.

Text

#! / bin/bashcomposer config-g repo.packagist composer https://mirrors.aliyun.com/composer/;composer require easyswoole/easyswoole=3.x;php vendor/easyswoole/easyswoole/bin/easyswoole install;php easyswoole start

Later, the script will be placed on the server, provided for download, and the actual one-line command installation will be achieved.

Pay attention

This script will switch the global composer image to Ali Cloud.

When installed, it will start automatically by default.

Knowledge point expansion:

Installation of EsaySwoole in Linux Pagoda

Install EsaySwoole link: https://www.easyswoole.com/Manual/2.x/Cn/_book/Introduction/install.html

The swoole extension installed on the pagoda panel does not necessarily support the latest version of EsaySwoole

And the swoole extension of the pagoda panel is not easy to upgrade.

So you can only uninstall yourself, recompile and install the extension Swoole.

Swoole extended address https://pecl.php.net/package/swoole

Find the version you need

Download swoole:wget https://pecl.php.net/get/swoole-4.3.1.tgz

Unzip: tar-zxvf the zip package you downloaded by yourself

Enter the decompressed file: cd swoole-4.3.1

Generate configure file: phpize

Compile:

. / configure-- with-php-config=/www/server/php/73/bin/php-config / / the directory where the files of your own PHP environment are located

Compile and install swoole

Make & & make install

Or

Makemake install

Finally, add at the end of the configuration file php.ini

Extension = swoole.so

Thank you for reading this article carefully. I hope the article "easyswoole one-click installation script and example analysis of pagoda installation errors" shared by the editor will be helpful to you. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Pagodas scripts files articles compilations examples errors one button analysis versions knowledge panels support one line value global interest and at the same time commands addresses Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft Docker Apple OPPO Reno Redmi