ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
[TOC] ### Simple-RTMP-Server的安装(RTMP服务器) ***** ### Dockerfile安装 ``` From centos:7 RUN yum install -y gcc \ gcc-c++ \ patch \ unzip \ automake \ make \ pcre-devel \ libtool \ zlib-devel \ net-tools \ wget \ git EXPOSE 1935 EXPOSE 1985 EXPOSE 8080 WORKDIR /home/project/ThirdParty RUN wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz \ && tar -zxvf nasm-2.14.02.tar.gz \ && cd nasm-2.14.02 \ && ./configure make && make install \ && cd .. RUN wget https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz \ && tar -zxvf x264-stable.tar.gz \ && cd x264-stable \ && ./configure --enable-static --enable-shared make && make install \ && cd .. RUN wget https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.gz \ && tar zxvf ffmpeg-4.1.3.tar.gz \ && cd ffmpeg-4.1.3 \ && ./configure --enable-gpl --enable-libx264 \ && make && make install \ && cd .. WORKDIR /home/project RUN git clone https://github.com/ossrs/srs WORKDIR /home/project/srs/trunk/ RUN mkdir -p objs \ && cp -r /home/project/srs/trunk/3rdparty/CherryPy-3.2.4.zip /home/project/srs/trunk/objs/ \ && cd objs \ && unzip CherryPy-3.2.4.zip \ && cd .. WORKDIR /home/project/srs/trunk/ RUN ./configure --disable-all --with-ssl --with-http-api --with-http-callback --with-ffmpeg --with-transcode --with-http-server && make WORKDIR /home/project/srs/trunk/ CMD ./objs/srs -c conf/srs.conf ``` 如果出现 `error creating overlay mount to /var/lib/docker/overlay2/e206892e291d726d13fd71a529c1e4d407326c7ccccbc2f7e4547b158e9a50a8/merged: invalid argument`的问题,请[清理docker](%E6%B8%85%E7%90%86docker.md) ### 手动安装 ***** #### 安装 nasm: ``` wget https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/nasm-2.14.02.tar.gz tar -zxvf nasm-2.14.02.tar.gz cd nasm-2.14.02 ./configure make && make install cd .. ``` #### 安装 x264: ``` wget https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable.tar.gz tar -zxvf x264-stable.tar.gz cd x264-stable ./configure --enable-static --enable-shared make && make install cd .. ``` #### 安装 ffmpeg: ``` wget https://ffmpeg.org/releases/ffmpeg-4.1.3.tar.gz tar zxvf ffmpeg-4.1.3.tar.gz cd ffmpeg-4.1.3 ./configure --enable-gpl --enable-libx264 make && make install cd .. ``` #### 安装 srs: ``` git clone https://github.com/ossrs/srs.git(https://github.com/ossrs/srs.git wget https://github.com/ossrs/srs/archive/v2.0-r6.tar.gz tar zxvf srs-2.0-r6.tar.gz cd srs-2.0-r6 ./configure --full && make 或 ./configure --disable-all --with-ssl --with-http-api --with-http-callback --with-ffmpeg --with-transcode --with-http-server \ ``` ### [git地址](https://github.com/ossrs/srs)