主页

Gitlabci使用记录

Why 使用gitlab作为文件服务器的管理中心 使用gitlab ci自动下载文件,并存储到文件服务器上 使用rsync同步两台文件服务器内容 知识点 shell遍历文件目录 #!/bin/bash read_dir(){ for file in `ls -a $1` do if [ -d $1"/"$file ] then if [[ $file != '.' && $file != '..' ]] then read_dir $1"/"$file fi else ...

阅读更多

Nginx文件服务器页面美化

Why 使用nginx做文件服务器,默认的样式比较丑 当读搭建一个网盘,成本比较大,也麻烦 StartUp # download wget https://github.com/aperezdc/ngx-fancyindex/releases/download/v0.5.1/ngx-fancyindex-0.5.1.tar.xz xz -d ngx-fancyindex-0.5.1.tar.xz tar -xvf ngx-fancyindex-0.5.1.tar # build cd nginx-?.?.? # add some module use nginx -V ./configure ...... --add-module=../nginx-fancyi...

阅读更多

Centos7扩容根目录

查询信息 查询当前主机可用的容量 目前根目录只有44G可用,要对根目录进行扩容,添加100G空间 [root@centos ~]# df -h 文件系统 容量 已用 可用 已用% 挂载点 devtmpfs 989M 0 989M 0% /dev tmpfs 1000M 0 1000M 0% /dev/shm tmpfs 1000M 8.6M 991M 1% /run tmpfs 1000M 0 1000M 0% /sys/fs/cgroup /dev/mapp...

阅读更多

Split切割大日志文件

[admin@localhost ~]$ split --help Usage: split [OPTION]... [INPUT [PREFIX]] Output fixed-size pieces of INPUT to PREFIXaa, PREFIXab, ...; default size is 1000 lines, and default PREFIX is `x'. With no INPUT, or when INPUT is -, read standard input. Mandatory arguments to long options are mandatory for short options too. -a, --suffix-length=N...

阅读更多

Centos7安装docker Buildx构建多cpu架构镜像

升级内核版本 rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm # 查询目前可升级的内核版本 yum --disablerepo="*" --enablerepo="elrepo-kernel" list available # 安装kernel-ml 最新版 yum --enablerepo=elrepo-kernel install kernel-ml -y # 查询所有启动候选项 awk -F\' '$1=="menuentry " {print i++ " : "...

阅读更多

Harbor Nginx 官方配置

worker_processes auto; pid /tmp/nginx.pid; events { worker_connections 1024; use epoll; multi_accept on; } http { client_body_temp_path /tmp/client_body_temp; proxy_temp_path /tmp/proxy_temp; fastcgi_temp_path /tmp/fastcgi_temp; uwsgi_temp_path /tmp/uwsgi_temp; scgi_temp_path /tmp/scgi_temp; tcp_nodelay on; # this is neces...

阅读更多

视频点播技术

目前 直播和点播 存在四种方案 rtmp(基于flash, 过时 延迟低) http-flv(基于flv b站开源的flv.js) hls(apple 私有协议 ios video 原生支持) dash (行业 chrome原生支持 基于http) rtmp适合原生客户端,延迟低.由于基于flash的原因.web端已经不能使用了. http-flv 主要是为了兼容之前的rtmp做的过渡 hls在国内很流行,主要是基于m3u8的ts分片 dash国外流行,支持多分辨率根据网速自动切换 技术选型: video.js 支持多种编码方式 nginx proxy_cache nginx代理并直接磁盘...

阅读更多