Easyswoole one-click installation script and pagoda installation error

Easyswoole one-click installation script and pagoda installation error

Frequently asked questions

When you are new to easyswoole, you often encounter the following problems:

  • The installation steps are complicated
  • Errors are prone to occur in integrated environments such as Pagoda
  • I can install it myself, but I'm too lazy. Is there a one-click method?

Start creating

I am a member of the easyswoole development team. For the sake of ecological improvement and laziness, this idea came up during a discussion one day.

And wrote this little script

It is important to note that these are just a few simple commands and they all appear in the documentation. It’s just that the document contains a lot of scene descriptions, which may cause some newcomers to not read them carefully.

In the Pagoda panel, if you follow the first step of the easyswoole document to install, errors will occur. There will be solutions in the subsequent steps of the document, but many newcomers do not read the error here, or take a detour.

Using this script, you can install it successfully directly, which is more convenient

The biggest role is still laziness~

text

#!/bin/bash
composer 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 and provided for download, so that it can be installed with just one line of command.

Note

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

Once installed, it will start automatically by default

Knowledge point expansion:

Linux Baota install EsaySwoole

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

The swoole extension installed by Baota Panel may not support the latest version of EsaySwoole

And the swoole expansion and upgrade of the pagoda panel is not easy

So you can only uninstall and recompile the extension Swoole

Swoole extension 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

Decompress: tar -zxvf the compressed package you downloaded yourself

Enter the unzipped 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 your own PHP environment files are located

Compile and install swoole

make && make install

or

make
make install

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

extension = swoole.so

Summarize

The above is the easyswoole one-click installation script and pagoda installation error problem introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • thinkphp framework class library extension operation example
  • PHP framework to implement WebSocket online chat communication system
  • ThinkPHP framework optimistic locking and pessimistic locking example analysis
  • A brief discussion on the difference between laravel framework and thinkPHP framework
  • How to use PHP to remind users to log in remotely [Based on thinkPHP framework]
  • Design patterns of homemade PHP framework
  • Homemade PHP framework model and database
  • Homemade PHP framework routing and controller
  • Detailed explanation of PHP framework EasySwoole

<<:  MySQL master-slave synchronization mechanism and synchronization delay problem tracking process

>>:  In-depth explanation of currying of JS functions

Recommend

Vue implements student management function

This article example shares the specific code of ...

Analysis of the ideas of implementing vertical tables in two ways in Vue project

Problem Description In our projects, horizontal t...

How to solve "Unable to start mysql service error 1069"

Today, when I was on the road, a colleague sent m...

How to set Nginx to forward the domain name to the specified port

Enter /usr/local/nginx/conf sudo cd /usr/local/ng...

HTML commonly used meta encyclopedia (recommended)

The Meta tag is an auxiliary tag in the head area...

The presentation and opening method of hyperlink a

<br />Related articles: How to prompt and op...

Specific use of the autoindex module in the Nginx Http module series

The main function of the brower module is to dete...

How to configure user role permissions in Jenkins

Jenkins configuration of user role permissions re...

Implementation of Linux command line wildcards and escape characters

If we want to perform batch operations on a type ...

Interviewers often ask questions about React's life cycle

React Lifecycle Two pictures to help you understa...

Vue uses vue-quill-editor rich text editor and uploads pictures to the server

Table of contents 1. Preparation 2. Define the gl...

Understanding JSON (JavaScript Object Notation) in one article

Table of contents JSON appears Json structure Jso...

How to install and configure SSH service in Ubuntu 18.04

Install ssh tool 1. Open the terminal and type th...