摘要:
sw1配置 【sw1】bfd //启用bfd [sw1-bfd]default-ip-address 224.0.0.184 //配置bfd默认使用组播地址 [sw1]bfd sw1-2 bind peer-ip default-ip interface g0/0/1 // 创建bfd会话 [sw1 阅读全文
摘要:
# 1.本地备份脚本 [root@db04 ~]# vim output_Es.sh #!/bin/bash read -p '要备份的机器是:'${1} #要导出的索引名 index_name='student' for index in `echo $index_name` do echo "s 阅读全文
摘要:
1.下载node.js的安装包 http://wget https://nodejs.org/dist/v10.13.0/node-v10.13.0-linux-x64.tar.gz 2.解压安装包 tar xf node-v10.13.0-linux-x64.tar.gz mv node-v10. 阅读全文
摘要:
图中顶部,首先是实际的物理磁盘及其划分的分区和其上的物理卷(PV)。一个或多个物理卷可以用来创建卷组(VG)。然后基于卷组可以创建逻辑卷(LV)。只要在卷组中有可用空间,就可以随心所欲的创建逻辑卷。文件系统就是在逻辑卷上创建的,然后可以在操作系统挂载和访问。 1.查看磁盘文件可用空间,发现可用磁盘空 阅读全文
摘要:
1.删除索引数据 POST /索引名称/_delete_by_query { "query": { "bool": { "must_not": [ { "match": { "test": "字段值" } } ] } } } 从一个索引数据导入另一个索引里 POST _reindex { "sour 阅读全文
摘要:
#!/bin/bash ./etc/profile .~/.bash_profile source /etc/profile #备份路径 BACKUP=/www/backup/mysql #当前时间 DATETIME=$(date +%Y-%m-%d) echo " 备份开始 " echo "备份文 阅读全文
摘要:
1.1 简述 left JOIN:把left join左边的表的记录全部找出来。系统会先用表A和表B做个笛卡儿积,然后以表A为基表,去掉笛卡儿积中表A部分为NULL的记录。最后形成你的结果。 进行左连接时,就有涉及到主表、辅表,这时主表条件写在WHERE之后,辅表条件写在ON后面。 1.2 实例 1 阅读全文
摘要:
mysql中有四种注释: 1、单行注释“--”,语法“-- 注释内容”; 2、单行注释“#”,语法“#注释内容”; 3、多行注释“/**/”,语法“/*注释内容 /”; 4、内联注释“/! /”,语法“/!注释内容 */”。 mysql中的四种注释 NO1:-- 注释内容 这种注释方法不能够实现多行 阅读全文
摘要:
Nginx下ssl配置方法 检测nginx是否支持SSL: $ nginx -V 如果有显示-with-http_ssl_module表示已编译openssl,支持安装ssl. 如果没有,请重新编译安装nginx $ ./ configure --with-http_ssl_module --wit 阅读全文
摘要:
#user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; ev 阅读全文