摘要: $serv = new Swoole\Server('0.0.0.0', 9501, SWOOLE_BASE, SWOOLE_SOCK_TCP); $serv->set(array( 'worker_num' => 2, 'daemonize' => false, 'backlog' => 128, )); $serv->on('WorkerStart', funct... 阅读全文
posted @ 2019-07-24 18:11 王东波 阅读(121) 评论(0) 推荐(0) 编辑
摘要: user('www-data') ->set('branch', 'master') ->set('deploy_path', '部署地址'); // Tasks desc('Deploy your project'); task('deploy', [ 'deploy:info', 'deploy:prepare', 'deploy... 阅读全文
posted @ 2019-07-24 12:53 王东波 阅读(147) 评论(0) 推荐(0) 编辑
摘要: location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } 阅读全文
posted @ 2019-06-06 13:42 王东波 阅读(1015) 评论(0) 推荐(0) 编辑
摘要: 安装 kernel-devel 阅读全文
posted @ 2019-06-06 11:11 王东波 阅读(750) 评论(0) 推荐(0) 编辑
摘要: upstream consul { server 127.0.0.1:8501; server 127.0.0.1:8502; server 127.0.0.1:8503; } server { listen 80; server_name consul.test.com;#服务域名,需要填写你的服务域名 location ... 阅读全文
posted @ 2019-05-12 12:44 王东波 阅读(60) 评论(0) 推荐(0) 编辑
摘要: version: '2.0' services: consul-server1: image: consul:latest hostname: "consul-server1" ports: - "8501:8500" volumes: - ./consul/data1:/consul/data command: "agent ... 阅读全文
posted @ 2019-05-12 12:43 王东波 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 1,下载nginx镜像 2,启动 3,创建本地目录 4,复制容器中的配置文件到本地目录 5,启动新容器 命令说明: -p 8082:80: 将容器的 80 端口映射到主机的 8082 端口。 --name runoob-nginx-test-web:将容器命名为 runoob-nginx-test- 阅读全文
posted @ 2019-05-12 12:26 王东波 阅读(121) 评论(0) 推荐(0) 编辑
摘要: location ~ [^/]\.php(/|$) { #fastcgi_pass remote_php_ip:9000; fastcgi_pass unix:/dev/shm/php-cgi.sock; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$; ... 阅读全文
posted @ 2019-02-18 10:03 王东波 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 1、安装JDK 2、安装jenkins 添加Jenkins库到yum库,Jenkins将从这里下载安装。 如果不能安装就到官网下载jenkis的rmp包,官网地址(http://pkg.jenkins-ci.org/redhat-stable/) 配置jenkis的端口 找到修改端口号: JENKI 阅读全文
posted @ 2019-01-19 14:56 王东波 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1,官方查找gitlab docker镜像 2,pull镜像 3,run 阅读全文
posted @ 2018-12-17 13:37 王东波 阅读(43) 评论(0) 推荐(0) 编辑