上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页
摘要: 1. 打开编辑limits.conf文件 vi /etc/security/limits.conf 2. 插入以下内容* hard nofile 999999* soft nofile 999999* soft nproc 65535* hard nproc 65535* hard stack 10 阅读全文
posted @ 2020-03-05 11:28 卡卡西村长 阅读(965) 评论(0) 推荐(0) 编辑
摘要: 确认新挂载的磁盘 [root@share-redis ~]# fdisk -l Disk /dev/sda: 53.7 GB, 53687091200 bytes, 104857600 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size 阅读全文
posted @ 2020-03-03 10:46 卡卡西村长 阅读(579) 评论(0) 推荐(0) 编辑
摘要: #查看操作系统 cat /etc/redhat-release #查看CPU的个数、核数、型号grep 'physical id' /proc/cpuinfo | sort -u | wc -lgrep 'core id' /proc/cpuinfo | sort -u | wc -ldmideco 阅读全文
posted @ 2020-03-02 11:52 卡卡西村长 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 假设有两张表a和b,需要把a的值复制到b表上,一般的做法如下: update b set value=(select a.value from a where a.id=b.id) 在vertica上执行这样的update语句是很慢的,有一个推荐的解决方案,是使用set using 和refresh 阅读全文
posted @ 2020-02-12 15:55 卡卡西村长 阅读(1236) 评论(0) 推荐(0) 编辑
摘要: CREATE TABLE t1 ( id int, name varchar(10) ); INSERT INTO t1 SELECT 1 AS id, 'greg' AS name UNION ALL SELECT 2, 'paul' UNION ALL SELECT 3, 'greg' UNIO 阅读全文
posted @ 2020-02-10 12:43 卡卡西村长 阅读(1631) 评论(0) 推荐(0) 编辑
摘要: json字符串的内容如下: 如果需要提取出json里的前3个stockName,可以通过regexp_substr函数实现。如下: 语法: 这里是关于regexp_substr函数的官方说明: https://www.vertica.com/docs/8.1.x/HTML/index.htm#Aut 阅读全文
posted @ 2020-01-14 14:32 卡卡西村长 阅读(865) 评论(0) 推荐(0) 编辑
摘要: master节点:10.1.131.101:6379 slave节点:10.1.131.102:6379 master节点的配置: slave节点的配置: 启动slave节点 service redis start 阅读全文
posted @ 2020-01-03 09:33 卡卡西村长 阅读(169) 评论(0) 推荐(0) 编辑
摘要: curl http://ifconfig.me curl http://icanhazip.com 阅读全文
posted @ 2019-12-27 15:17 卡卡西村长 阅读(776) 评论(0) 推荐(0) 编辑
摘要: tcpdump host 10.1.131.75 -i eth0 -w data.cap 其中,10.1.131.75上目标机器的IP,eth0上网卡名称,data.cap上抓包数据写入的文件。 阅读全文
posted @ 2019-12-19 10:04 卡卡西村长 阅读(296) 评论(0) 推荐(0) 编辑
摘要: rm -rf /etc/localtime ln -s /usr/share/zoneinfo/Asia/Shanghai /etc/localtime ntpdate cn.pool.ntp.org 修改crontab vi /etc/crontab #每天晚上11点同步时间服务器 0 23 * 阅读全文
posted @ 2019-12-02 14:23 卡卡西村长 阅读(288) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 15 下一页