Ubuntu应用程序全屏
一个小bug
Failed to load module "canberra-gtk-module"
sudo apt install libcanberra-gtk-module
sudo apt install gnome-tweaks
sudo apt install gnome-shell-extension-autohidetopbar
sudo apt install gnome-shell-extension-dashtodock
一个小bug
Failed to load module "canberra-gtk-module"
sudo apt install libcanberra-gtk-module
sudo apt install gnome-tweaks
sudo apt install gnome-shell-extension-autohidetopbar
sudo apt install gnome-shell-extension-dashtodock
第一部分:
sudo lsb_release -a
sudo apt-get update
sudo apt-get install erlang-nox
sudo apt-get install rabbitmq-server
sudo rabbitmqctl status
sudo rabbitmq-plugins enable rabbitmq_management
sudo rabbitmq-plugins enable rabbitmq_mqtt
http://192.168.x.x:15672/
sudo service rabbitmq-server restart
sudo rabbitmqctl list_users
sudo rabbitmqctl add_user admin 123456
sudo rabbitmqctl set_user_tags admin administrator
已经可以登录
第二部分:
参考资料:
https://www.jianshu.com/p/055c0e35c7f6
为啥要编译,希望编译些模块
Ubuntu 20.04 LTS集成的版本nginx version: nginx/1.18.0 (Ubuntu)
wget 'http://nginx.org/download/nginx-1.18.0.tar.gz'
tar -xzvf nginx-1.18.0.tar.gz
wget 'https://github.com/winshining/nginx-http-flv-module/archive/v1.2.8.tar.gz'
tar -xzvf v1.2.8.tar.gz
cd nginx-1.18.0
./configure --add-module=/home/user/nginx/nginx-http-flv-module-1.2.8
提示:error: the HTTP rewrite module requires the PCRE library
sudo apt-get install libpcre3-dev
配置成功,默认位置,可以通过--prefix=/usr/local/nginx配置
nginx path prefix: "/usr/local/nginx"
nginx binary file: "/usr/local/nginx/sbin/nginx"
nginx modules path: "/usr/local/nginx/modules"
nginx configuration prefix: "/usr/local/nginx/conf"
nginx configuration file: "/usr/local/nginx/conf/nginx.conf"
nginx pid file: "/usr/local/nginx/logs/nginx.pid"
nginx error log file: "/usr/local/nginx/logs/error.log"
nginx http access log file: "/usr/local/nginx/logs/access.log"
nginx http client request body temporary files: "client_body_temp"
nginx http proxy temporary files: "proxy_temp"
nginx http fastcgi temporary files: "fastcgi_temp"
nginx http uwsgi temporary files: "uwsgi_temp"
nginx http scgi temporary files: "scgi_temp"
sudo apt-get install ffmpeg
太慢小时级别,需要换个阿里源分钟级别
ffmpeg -version
ffmpeg version 4.2.4-1ubuntu0.1
关于视频推送的一个项目RtspWebSocket
https://gitee.com/yzfar/RtspWebSocket/tree/master
npm install flv.js
下载素材
https://blog.csdn.net/qq_41672008/article/details/103676839
参考资料:
https://www.cnblogs.com/lonelamb/p/11620906.html
官网地址
https://github.com/fatedier/frp
下载地址
https://github.com/fatedier/frp/releases
服务端配置
wget https://github.com/fatedier/frp/releases/download/v0.34.0/frp_0.34.0_linux_amd64.tar.gz
tar -xvf frp_0.34.0_linux_amd64.tar.gz
可以建立一个frps_xxx.ini的配置文件
[common]
bind_port = 4001
dashboard_addr = 0.0.0.0
dashboard_port = 4002
dashboard_user = admin
dashboard_pwd = password
enable_prometheus = true
log_file = ./frps_xxx.log
use_encryption = true
use_compression = true
authentication_method = token
token = asdasd
然后用./frps -c ./frps_xxx.ini &来启动服务端
需要开放4001端口给外网,可以通过http://ip:4002访问网页
客户端仅需要frpc和frpc.ini就可以
[common]
server_addr = ip
server_port = 4001
token = asdasd
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 1234
use_encryption = true
use_compression = true
把本地的ssh端口映射到服务端的1234,执行./frpc -c ./frpc.ini &