$ wget https:
$ wget https:
$ wget https:
$ wget https:
$ php --ini
1. 解決方法 https:
2. 編譯時選擇no
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:204: ext-src/swoole_client_coro.lo] Error 1
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
make: *** [Makefile:192: ext-src/php_swoole.lo] Error 1
g++: fatal error: Killed signal terminated program cc1plus
compilation terminated.
$ php -v
$ composer -v
$ php --ri swoole
swoole
Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.6.7
Built => May 28 2021 17:15:13
coroutine => enabled with boost asm context
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
openssl => OpenSSL 1.1.1f 31 Mar 2020
dtls => enabled
http2 => enabled
pcre => enabled
zlib => 1.2.11
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled
Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => Off => Off
swoole.unixsock_buffer_size => 8388608 => 8388608
$ composer create-project hyperf/hyperf-skeleton hyperf
$ composer update -o
3. 安裝supervisor
$ sudo apt-get install -y supervisor
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package supervisor
$ sudo apt-get update
$ echo_supervisord_conf > /etc/supervisord.conf
;[include]
;files = relative/directory/*.ini
[include]
files = etc/supervisor/conf.d/*.conf
$ supervisord -c /etc/supervisord.conf
[program:hyperf]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/hyperf/bin/hyperf.php start
autostart=true
autorestart=true
user=root
startsecs=10
startretries=3
redirect_stderr=true
stdout_logfile=/tmp/hyperf.error.log
$ supervisorctl status
$ sudo supervisorctl reread
$ sudo supervisorctl update
$ sudo supervisorctl start hyperf:*
$ supervisorctl stop hyperf:*
本作品採用《CC 協議》,轉載必須註明作者和本文連結