/images/avatar.jpg

木木飞

部署openresty和kafka的数据采集系统

基于Openresty+Lua+Kafka对日志进行实时的采集 openresty 1 2 3 4 5 6 7 8 9 #!/bin/bash ## openresty apt-get -y install --no-install-recommends wget gnupg ca-certificates wget -O - https://openresty.org/package/pubkey.gpg | sudo apt-key add - echo "deb http://openresty.org/package/ubuntu $(lsb_release -sc)main" > openresty.list cp openresty.list /etc/apt/sources.list.d/

Ubuntu安装php8.1和swoole

hyperf2.2 + php8.1 + swoole + redis + mysql + ubuntu20 的环境 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 apt install software-properties-common add-apt-repository ppa:ondrej/php apt update # mysql用的是云商的, 本地不安装 apt-get update apt -y install php8.1 apt -y install php8.1-swoole; apt

在ubuntu搭建hyperf

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 // 安装php $ wget https://gitee.com/yurunsoft/php-env/raw/master/apt-php.sh && bash apt-php.sh //

阿里云国内机房拉github代码加速方案

绑定host su root vi /etc/hosts 1 2 3 4 5 6 7 8 9 10 # github 204.232.175.78 documentcloud.github.com 207.97.227.239 github.com 204.232.175.94 gist.github.com 107.21.116.220 help.github.com 207.97.227.252 nodeload.github.com 199.27.76.130 raw.github.com 107.22.3.110 status.github.com 204.232.175.78 training.github.com 207.97.227.243 www.github.com 安装神秘客户端 1 2 3 4 5 6 7 8 9 10 11 12 13 cd /opt/ wget https://nodejs.org/dist/v14.0.0/node-v14.0.0-linux-x64.tar.xz tar xvf node-v14.0.0-linux-x64.tar.xz echo "export NODE_HOME=/opt/node-v14.0.0-linux-x64"