- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 SQL根据字段分组并获取每个值的十条数据
使用SQL中的partition函数 1、sql 语法 select m, n from ( select row_number () over (partition by m order by n desc) rn,--以m分组,分组内以n倒序排列求每组中各自的序号 m, n from table where ... ) w where w.rn <=10;序号小于10 order by m, n desc 2、案例获取每个月前十大客户数据 原来数据
2022-04-21 15:04:30
5801
原创 expect脚本自动连接ftp服务器下载文件
#!/usr/bin/expect #根据文件名从ftp下载文件到指定目录 #远程主机的IP地址 set ip 192.168.1.1 #登陆密码 set password ABC123 #设置超时时间 set timeout 10 #需要下载的文件名 set file test.txt #ftp服务器上文件所在路径 set ftpPath /home/file #文件下载到本地的路径 set localPath /opt/ #执行ftp $ip命令 spawn ftp $ip #如果出现Name字符.
2022-04-09 16:38:25
1978
原创 linux环境编译安装分布式文件系统FastDfs
一、简单说明 1.源码项目地址: 注:本次安装的不是github上面的FastDfs原作者happyfish100的项目,而是另一个作者tobato在源码基础上做了一些封装优化,即这里安装的其实是一个第三方的FastDfs 源码项目地址:nullFastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing
2022-04-09 16:07:07
2227
原创 linux环境编译安装nginx
1.安装依赖 yum install gcc gcc-c++ make automake autoconf libtool pcre* zlib openssl openssl-devel 2.下载tar包 wget http://nginx.org/download/nginx-1.15.4.tar.gz 3.解压 tar -zxvf nginx-1.15.4.tar.gz #解压 cd nginx-1.15.4/ 4.编译安装 ./configure --prefix=/etc/n
2022-04-06 17:48:30
2616
原创 Nginx 安装 ModSecurity 模块
1.首先把需要得规则策略包丢到/usr/local目录下 (后面好像没用到,可以暂时忽略) 下载链接: owasp-modsecurity-crs/rules at v3.3/dev · SpiderLabs/owasp-modsecurity-crs · GitHub 2.安装依赖工具 yum install -y epel-release yum install -y readline-devel curl-devel gcc gcc-c++ python-devel lua-devel d
2022-04-06 14:38:33
8510
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
1