您当前的位置: 首页 > 慢生活 > 程序人生 网站首页程序人生
webman安裝
发布时间:2022-01-16 17:12:10编辑:雪饮阅读()
設置composer鏡像為阿里雲鏡像
[root@localhost webman]# /usr/local/php734/bin/php /usr/bin/composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
創建webman項目
[root@localhost webman]# /usr/local/php734/bin/php /usr/bin/composer create-project workerman/webman
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Creating a "workerman/webman" project at "./webman"
Installing workerman/webman (v1.2.2)
- Downloading workerman/webman (v1.2.2)
Failed downloading workerman/webman, trying the next URL (404: The "https://mirrors.aliyun.com/composer/dists/workerman/webman/c35ecec63c2c363b8ad28b74ed348549ac204cd6.zip" file could not be downloaded (HTTP/1.1 404 Not Found))
- Downloading workerman/webman (v1.2.2)
- Installing workerman/webman (v1.2.2): Extracting archive
Created project in /www/wwwroot/webman/webman
Loading composer repositories with package information
Updating dependencies
Lock file operations: 6 installs, 0 updates, 0 removals
- Locking monolog/monolog (2.3.5)
- Locking nikic/fast-route (v1.3.0)
- Locking psr/container (1.1.1)
- Locking psr/log (1.1.4)
- Locking workerman/webman-framework (v1.2.1)
- Locking workerman/workerman (v4.0.26)
Writing lock file
Installing dependencies from lock file (including require-dev)
Package operations: 6 installs, 0 updates, 0 removals
- Downloading psr/log (1.1.4)
- Downloading monolog/monolog (2.3.5)
- Downloading workerman/workerman (v4.0.26)
- Downloading psr/container (1.1.1)
- Downloading nikic/fast-route (v1.3.0)
- Downloading workerman/webman-framework (v1.2.1)
Failed downloading workerman/webman-framework, trying the next URL (404: The "https://mirrors.aliyun.com/composer/dists/workerman/webman-framework/ad0244feaa9cdbfeaa767c3807688fd0a2087634.zip" file could not be downloaded (HTTP/1.1 404 Not Found))
- Downloading workerman/webman-framework (v1.2.1)
- Installing psr/log (1.1.4): Extracting archive
- Installing monolog/monolog (2.3.5): Extracting archive
- Installing workerman/workerman (v4.0.26): Extracting archive
- Installing psr/container (1.1.1): Extracting archive
- Installing nikic/fast-route (v1.3.0): Extracting archive
- Installing workerman/webman-framework (v1.2.1): Extracting archive
> support\Plugin::install
> support\Plugin::install
> support\Plugin::install
> support\Plugin::install
> support\Plugin::install
> support\Plugin::install
18 package suggestions were added by new dependencies, use `composer suggest` to see details.
Generating autoload files
3 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
啓動webman項目
[root@localhost webman]# cd webman
這裏以守護模式運行
[root@localhost webman]# /usr/local/php734/bin/php start.php start -d
Workerman[start.php] start in DAEMON mode
----------------------------------------- WORKERMAN -----------------------------------------
Workerman version:4.0.26 PHP version:7.3.4
------------------------------------------ WORKERS ------------------------------------------
proto user worker listen processes status
tcp root webman http://0.0.0.0:8787 4 [OK]
tcp root monitor none 1 [OK]
---------------------------------------------------------------------------------------------
Input "php start.php stop" to stop. Start success.
訪問該webman項目
[root@localhost webman]# elinks http://127.0.0.1:8787 --dump
hello webman
关键字词:workerman,webman,安裝
相关文章
- workerman入門到精通系列之第一季workerman(共313節詳
- workerman也能玩二進制流workerman推送圖片音視頻實例
- workerman-websocket协议-websocket协议握手(get,serv
- workerman系列之windows環境下多实例多協議共存
- workerman系列之再談socket5代理s5優化
- workerman服務治理優化系列之連接數管理-根据连接数重
- workerman服務治理系列之workerman服务(脚本)自启动(开机
- workerman16进制与2进制字符串的转换(局限有点狭隘,應該
- http反向代理環境下获取真实ip(基於workerman)
- https在反向代理環境下获取真实ip(基於workerman實現)