分类 默认分类 下的文章

将本地镜像复制到远程机器,直接导入 docker,无中间文件

docker save edgexfoundry/device-s7:0.0.0-dev | ssh -C 192.168.123.35 docker load 

将当前目录下所有的视频文件合并为一个 mp4

ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -c copy output.mp4

Localtunnel under Apache Httpd

<VirtualHost *:80>
    ServerName t.abc.cn
    ServerAlias *.t.abc.cn

    RewriteEngine   On
    ProxyPassMatch ^/(.*)$ http://localhost:3081/$1
    ProxyPassReverse / http://localhost:3081/

    RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
    RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
    RewriteRule .* ws://localhost:3081%{REQUEST_URI} [P]

    ProxyPreserveHost   On
    ProxyRequests   On
</VirtualHost>

从 docker container 中获取配置,并打印需要的内容

docker exec -it zlmediakit cat /opt/media/conf/config.ini  | grep secret| awk -F'=' '{print $2}'