This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "crypto/aes" | |
| "encoding/hex" | |
| _ "github.com/jinzhu/gorm/dialects/mysql" | |
| "log" | |
| "time" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '3' | |
| services: | |
| php: | |
| image: hteen/php | |
| restart: always | |
| privileged: true | |
| extra_hosts: | |
| - "a.com:172.19.0.10" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $http = new swoole_http_server("0.0.0.0", 80); | |
| $http->on("start", function ($server) { | |
| echo "Swoole http server is started\n"; | |
| }); | |
| $http->on("request", function ($request, $response) { | |
| $response->header("Content-Type", "text/plain"); | |
| // Gitee Push |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 增加端口映射 | |
| [range:xdebug] | |
| type = tcp | |
| local_ip = 127.0.0.1 | |
| local_port = 9001 | |
| remote_port = 9001 |