$ sudo apt update
$ sudo apt upgrade
$ sudo apt install nginx
$ sudo apt install php8.1-fpm php8.1 php-dev -y
$ php -v
$ sudo pecl install swoole
$ sudo apt install php-pear
$ sudo nano /etc/php/8.1/cli/php.ini
$ php --ini
extension=swoole.so
$ sudo service php8.1-fpm restart
$ php -m
$ sudo apt install curl unzip
$ sudo apt install php-curl
$ curl -sS https://getcomposer.org/installer -o composer-setup.php
$ sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
$ composer -V
$ composer global require "laravel/installer"
$ nano $HOME/.bashrc
$ export PATH="$PATH:$HOME/.config/composer/vendor/bin"
$ source $HOME/.bashrc
$ laravel new swoole_test
$ composer require swooletw/laravel-swoole
$ php artisan make:command Swoole
$ php artisan swoole start