用Docker部署RTMP推流服务器 三年前用CentOS的镜像构建过RTMP Nginx的推流服务器,前一段时间再构建的时候发现速度很慢,而且镜像很大,考虑到CentOS都已经停止维护了,于是最近用Ubuntu22.04LTS镜像升级一下,优化完成后镜像大小降了一半还要多一点,构建速度也快了很多。 优化前: ubuntu@VM-8-3-ubunt…
Bash特性实现Curl #!/bin/bash function __curl() { read proto server path <<<$(echo ${1//// }) DOC=/${path// //} HOST=${server//:*} PORT=${server//*:} [[ x"${HOST}" == x"${…
读取群晖Basic存储池硬盘: 群晖官方方法: https://kb.synology.com/en-global/DSM/tutorial/How_can_I_recover_data_from_my_DiskStation_using_a_PC sudo apt-get update sudo apt-get install -y mdad…
Nginx http://nginx.org/en/download.html Debian9下编译环境 apt install gcc libpcre3 libpcre3-dev openssl libssl-dev zlib1g-dev zlib1g automake autoconf libtool make net-tools unzip …
1. 安装桌面环境 yum groupinstall "X Window System" yum groupinstall "GNOME Desktop" 安装xrdp yum install epel-release yum install xrdp 启动xrdp服务 systemctl start xrdp systemctl enable x…
保存直播流 ffmpeg -i "http://www.xxx.com/test.flv" -c:a copy -c:v copy output.mp4
FROM centos:centos7 RUN yum -y update RUN yum -y install gcc gcc-c++ autoconf automake make RUN yum -y install zlib zlib-devel openssl* pcre* wget lua-devel MAINTAINER Harson …
yum更新 sudo yum update 卸载旧版本(如果安装过旧版本的话) sudo yum remove docker docker-common docker-selinux docker-engine 安装需要的软件包, yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的 sudo…
Transmission sudo apt install transmission-daemon 启动 sudo service transmission-daemon start 配置文件 sudo nano /var/lib/transmission-daemon/.config/settings.json Transmissi…
Ubuntu换源之前 cp /etc/apt/sources.list /etc/apt/sources_init.list 阿里云Ubuntu 18.04源 deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mir…