linux

nginx + rtmp + hls

download rtmp moudule
git clone https://github.com/arut/nginx-rtmp-module

download nginx source code
wget -c http://nginx.org/download/nginx-1.15.4.tar.gz

install pcre library
wget -c https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz

(unzip & make & make install)

generate Makefile
./configure --add-module=../nginx-rtmp-module

compile & install
make && sudo make install

modify nginx config and restart nginx
vim /usr/local/nginx/nginx.conf && sudo service nginx restart

add a page to contain the player

stream the video to server using OBS Studio

.zsh_history

LAMP make install + phpMyAdmin

download apache2 mysql8.0 php7.2 source code
wget -c ***.tar.gz

compile and install
cmake . && make && make install

install phpMyAdmin
sudo apt install phpmyadmin

config

(finally failed to compile MySQL8.0 because the 1GHz 1Core CPU…)

.zsh_history

Install Shadowsocks on a OpenWrt router

download cross-compile toolchain and OpwnWrt SDK

download shadowsocks source code into the SDK package/ folder

make menuconfig

make

upload the .ipk binary file to the router

opkg install

.zsh_history deleted because I re-installed the OS


姓名: 任博文
学号: 2016301500264