- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 SQL根据字段分组并获取每个值的十条数据
使用SQL中的partition函数1、sql 语法select m, nfrom ( select row_number () over (partition by m order by n desc) rn,--以m分组,分组内以n倒序排列求每组中各自的序号 m, n from table where ...) wwhere w.rn <=10;序号小于10order by m, n desc2、案例获取每个月前十大客户数据原来数据
2022-04-21 15:04:30
5539
原创 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
1846
原创 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
2141
原创 linux环境编译安装nginx
1.安装依赖yum install gcc gcc-c++ make automake autoconf libtool pcre* zlib openssl openssl-devel2.下载tar包wget http://nginx.org/download/nginx-1.15.4.tar.gz3.解压tar -zxvf nginx-1.15.4.tar.gz #解压cd nginx-1.15.4/4.编译安装./configure --prefix=/etc/n
2022-04-06 17:48:30
2510
原创 Nginx 安装 ModSecurity 模块
1.首先把需要得规则策略包丢到/usr/local目录下 (后面好像没用到,可以暂时忽略)下载链接:owasp-modsecurity-crs/rules at v3.3/dev · SpiderLabs/owasp-modsecurity-crs · GitHub2.安装依赖工具yum install -y epel-releaseyum install -y readline-devel curl-devel gcc gcc-c++ python-devel lua-devel d
2022-04-06 14:38:33
8119
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人