删除文本中指定字符开头的行: cat /root/1.txt | sed -e '/^WARN/d' > /root/2.txt 注意:上面红色字体为开头行的关键字 cat:查看文件 /root/filename:文件名| :管道符sed:在sed处理文件的时候,每一行都被保存在一个叫模式空间的临时 ...
分类:
系统相关 时间:
2021-06-22 17:54:38
阅读次数:
0
简介OS: CentOS Linux release 8.2 开始清除mysql# 查看系统信息$ cat /etc/redhat-releaseCentOS Linux release 8.2.2004 (Core) # 查看有没有mysql$ rpm -qa | grep mysqlmysql- ...
分类:
数据库 时间:
2021-06-22 17:36:24
阅读次数:
0
1、查看所有索引 GET _cat/indices 2、创建一个新的索引 PUT /test { "mappings": { "_doc": { "properties": { "id": {"type": "keyword"}, "title": {"type": "keyword"}, "esD ...
分类:
其他好文 时间:
2021-06-21 21:11:29
阅读次数:
0
pom.xml配置 需要添加spring-boot-starter-actuator很重要不要然报错 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-nacos-co ...
分类:
其他好文 时间:
2021-06-21 21:11:16
阅读次数:
0
Android使用开源的与操作系统无关的SQL数据库——SQLite 一:在命令行下创建数据库: 1.启动模拟器后,打开命令行,执行adb shell 2.进入所在工程目录 3.执行sqlite3 mydb创建数据库文件 :表示结尾,--表示注解 二:包Android.database.sqlite ...
分类:
数据库 时间:
2021-06-21 20:47:00
阅读次数:
0
升级原因:为了在本地安装跟公司测试服一样的服务器环境,需要把本地PHP版本从5.4升级到5.5。 操作步骤: 1. 查看当前centos版本 [root@localhost ~]# cat /etc/redhat-release 2. 根据当前centos版本,更换对应版本的RPM 源(软件仓库) ...
分类:
Web程序 时间:
2021-06-21 20:30:16
阅读次数:
0
server: port: 8080 spring: application: name: gateway cloud: gateway: routes: - id: guo-system4 uri: https://www.baidu.com predicates: - Query=smile # ...
分类:
其他好文 时间:
2021-06-21 20:30:01
阅读次数:
0
url的hash和HTML5的history URL的hash URL的hash也就是锚点(#), 本质上是改变window.location的href属性. 我们可以通过直接赋值location.hash来改变href, 但是页面不发生刷新 history H5的history接口是HTML5新增 ...
分类:
Web程序 时间:
2021-06-21 20:05:45
阅读次数:
0
函数获取使用高德天气接口 import requests 爬取数据 def read_location(name): centerurl = "https://restapi.amap.com/v3/config/district?keywords=" centerurl2 = "&subdistr ...
分类:
其他好文 时间:
2021-06-21 20:05:25
阅读次数:
0
通过gmt的project命令和awk命令,已知两点的经纬度A[90,30],B[130,28],输出沿测线AB的高程数据:和A点的距离(km),高程,并画出图。 ...
分类:
其他好文 时间:
2021-06-20 18:41:58
阅读次数:
0