2025年8月13日
摘要: 脚本如下 yum -y install yum-utils device-mapper-persistent-data lvm2 yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker 阅读全文
posted @ 2025-08-13 16:02 弘道者 阅读(6) 评论(0) 推荐(0)
  2025年6月30日
摘要: ffmpeg -i good.mp4 -f lavfi -i "color=black:s=1920x1080" -filter_complex "[0:v][1:v]overlay=enable='between(mod(t,60),0,30)':shortest=1" -c:v libx264 阅读全文
posted @ 2025-06-30 14:12 弘道者 阅读(26) 评论(0) 推荐(0)
摘要: 自己虚拟机设置IP的脚本 #!/bin/bash if [ -z "$1" ]; then echo "没有传入参数" exit else echo "第一个参数是: $1" fi echo "network: ethernets: enp0s3: dhcp4: no addresses: [192 阅读全文
posted @ 2025-06-30 13:04 弘道者 阅读(9) 评论(0) 推荐(0)
  2025年5月29日
摘要: 之前都是直接安装ftp服务,后来遇到各种系统,Ubuntu,centos 还是有区别,所以转战docker了,使用真方便。 就两步,拉取镜像,跑起来,下面是脚本: #!/bin/bash docker pull swr.cn-north-4.myhuaweicloud.com/ddn-k8s/doc 阅读全文
posted @ 2025-05-29 10:08 弘道者 阅读(202) 评论(0) 推荐(0)
  2025年3月24日
摘要: 不知道怎么回事wget执行命令就这样了 ,可以配置一下跳过证书鉴权, echo "check_certificate = off" > ~/.wgetrc 阅读全文
posted @ 2025-03-24 09:17 弘道者 阅读(118) 评论(0) 推荐(0)
  2024年10月25日
摘要: 我们以Windows为例,目录选择e盘 切片文件在e:/cut/下面 第一步生成文件列表 创建e:/list.txt 输入下面的内容 file 'e:/cur/1.ts' file 'e:/cur/2.ts' file 'e:/cur/3.ts' file 'e:/cur/4.ts' file 'e 阅读全文
posted @ 2024-10-25 18:33 弘道者 阅读(609) 评论(0) 推荐(0)
  2024年10月18日
摘要: 需要用到nginx实现文件上传,刚好手里面的版本支持lua,下面是完整实现: 首先是nginx的配置如下:注意$home_path设置的是上传文件的保存目录 location /uploadFile { set $home_path "/root/up2"; content_by_lua_file 阅读全文
posted @ 2024-10-18 11:10 弘道者 阅读(329) 评论(0) 推荐(0)
  2024年9月21日
摘要: 出现了下面的错误 E: Could not get lock /var/lib/dpkg/lock-frontend - open (11: Resource temporarily unavailable) E: Unable to acquire the dpkg frontend lock ( 阅读全文
posted @ 2024-09-21 06:32 弘道者 阅读(279) 评论(0) 推荐(0)
  2024年9月20日
摘要: 直接上脚本,执行完后重新登录一下终端 #!/bin/bash if ! command -v gpg-agent &> /dev/null; then echo "not use gpg-agent,exit ..." exit 1 fi num=`grep GPG_TTY ~/.bashrc -c 阅读全文
posted @ 2024-09-20 17:32 弘道者 阅读(128) 评论(0) 推荐(0)
  2024年8月13日
摘要: 明明可以很简单,网上的教程老是出错,直接上脚本 curl -o /etc/yum.repos.d/CentOS-Base.repo https://repo.huaweicloud.com/repository/conf/CentOS-7-reg.repo yum clean all yum mak 阅读全文
posted @ 2024-08-13 09:47 弘道者 阅读(245) 评论(0) 推荐(0)