1 2 3 4 5 ··· 23 下一页
  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 弘道者 阅读(1) 评论(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 弘道者 阅读(18) 评论(0) 推荐(0) 编辑
  2024年9月20日
摘要: 直接上脚本,执行完后重新登录一下终端 #!/bin/bash num=`svn auth|grep gpg-agent -c` if [ "$num" -eq 0 ]; then echo "not use gpg-agent,exit ..." exit fi num=`grep GPG_TTY 阅读全文
posted @ 2024-09-20 17:32 弘道者 阅读(7) 评论(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 弘道者 阅读(71) 评论(0) 推荐(0) 编辑
  2024年7月29日
摘要: opencv可以很方便对图像求hog特征值,然后使用SVM进行分离,最终达到特定物体识别的功能。下面的示例 #include <opencv2/opencv.hpp> #include "opencv2/core/core.hpp" #include "opencv2/highgui/highgui 阅读全文
posted @ 2024-07-29 15:24 弘道者 阅读(3) 评论(0) 推荐(0) 编辑
  2024年7月25日
摘要: 想要把代码托管到github上面,之前没有用过,简单记录一下: 注册github账号 注册github账号,这个使用邮箱就能注册,比较方便。 安装git 1.下载git安装包 进入官网Git (git-scm.com)下载对应版本就行 2.安装 通常全部点击下一步就行了 3.创建密钥对 右键点击Op 阅读全文
posted @ 2024-07-25 11:26 弘道者 阅读(12) 评论(0) 推荐(0) 编辑
  2024年6月21日
摘要: 直接上代码,简单的页面播放一个http/ts的直播 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>ts player</title> < 阅读全文
posted @ 2024-06-21 23:58 弘道者 阅读(131) 评论(0) 推荐(0) 编辑
  2024年6月5日
摘要: 达梦数据库是不能用root来执行SQL名称的,需要切换到dmdba用户 su - dmdba 使用odbc进行登录 isql -v dm8 就可以执行SQL命令了,和常规的还是有一些区别,mysql中的数据库对应达梦中的表空间 SCHEMA相当于mysql中数据库的概念,下面创建一个SCHEMACR 阅读全文
posted @ 2024-06-05 17:57 弘道者 阅读(82) 评论(0) 推荐(0) 编辑
摘要: 测试需要频繁安装,搞个脚本 #!/bin/bash export pw="demoPass123!" echo "use password:$pw" groupadd dinstall -g 2001 useradd -G dinstall -m -d /home/dmdba -s /bin/bas 阅读全文
posted @ 2024-06-05 15:46 弘道者 阅读(19) 评论(0) 推荐(0) 编辑
  2024年5月24日
摘要: Linux下需要监控网络状况,可以用ping然后导出到文件 写了个脚本 直接就能用了 #!/bin/bash while : do ping baidu.com -W 1 -c 20 | while read pong; do echo "$(date): $pong"; done >> log.t 阅读全文
posted @ 2024-05-24 11:16 弘道者 阅读(228) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 23 下一页