-
Linux 统计文本行数
统计文本行数 wc -l a.txt 输出: 6 a.txt
-
Linux sed 命令查看文件指定行数内容
查看指定一行内容 查看a.txt中的第5行 sed -n 5p a.txt 查看指定行与指定行之间的内容 查看a.txt中第5行到第10行之间的内容 sed -
-
Linux grep 转义特殊符号
场景 有a.txt文本,内容如下: \\ \ ' $ | " 查找 \ grep '\' a.txt 报错:grep: Trailing backslash 需
-
Linux 分析 PHP 进程内存占用
命令 pmap $(pgrep php) | less pmap $(pgrep php | head -1)
-
Linux 下编译安装 PHP 时报 libxml2 configure: error
原因 缺少libxml2-dev库 Ubuntu 安装 apt-get install libxml2-dev CentOS 安装 yum install li
-
编译时提示 virtual memory exhausted: Cannot allocate memory
查看 Swap 交换区 free -m 输出: total used free shared b
2019-04-29, Views: 4003 , Topics: Linux
-
Linux 增加 Swap 交换分区解决内存不足
Swap 交换分区简介 当系统的物理内存不够用的时候,就需要将物理内存中的一部分空间释放出来,以供当前运行的程序使用,那些被释放的空间可能来自一些很长时间没有什
2019-04-29, Views: 3563 , Topics: Linux
-
Linux 配置 top 命令显示 swap
进入 top 命令 top 进入配置界面 按f Fields Management for window 1:Def, whose current sort f
2019-04-29, Views: 6785 , Topics: Linux
-
Linux 查看内存信息
指令 cat /proc/meminfo 输出: MemTotal: 1016200 kB MemFree: 156916 kB
2019-04-29, Views: 3304 , Topics: Linux
-
Elasticsearch health status 显示为 yellow 解决方法
查看 health curl -XGET "http://localhost:9200/_cluster/health?pretty=true" 返回: {
2019-04-26, Views: 11867 , Topics: Elasticsearch
-
PHP 使用 Zend OPcache 字节码缓存
CentOS 安装 sudo yum install php-opcache 常用配置 ;开启OPcache。 opcache.enable=1 ;CLI环境
2019-04-26, Views: 3380 , Topics: PHP
-
Elasticsearch 短语搜索 query->match_phrase
短语搜索 精确匹配一系列单词或者短语。 使用match_phrase curl -X GET "localhost:9200/megacorp/employ
2019-04-25, Views: 3646 , Topics: Elasticsearch 全文检索
-
Elasticsearch 全文搜索 query->match
全文搜索 query->match curl -X GET "localhost:9200/megacorp/employee/_search?prett
2019-04-25, Views: 2345 , Topics: Elasticsearch 全文检索
-
Elasticsearch 使用 filter 和 range 过滤器搜索
使用过滤器搜索 query->bool->must->match filter->range curl -X GET "localhos
2019-04-25, Views: 3971 , Topics: Elasticsearch 全文检索
-
Elasticsearch 使用查询表达式搜索
查询表达式搜索 query->match curl -X GET "localhost:9200/megacorp/employee/_search?pr
2019-04-25, Views: 3323 , Topics: Elasticsearch 全文检索
-
Elasticsearch 出现 circuit_breaking_exception 异常
异常信息 { "error" : { "root_cause" : [ { "type" : "circuit_brea
2019-04-25, Views: 17075 , Topics: Elasticsearch
-
Elasticsearch 轻量搜索 _search 和 q=
轻量搜索 使用_search curl -X GET "localhost:9200/megacorp/employee/_search?pretty=true
2019-04-25, Views: 4555 , Topics: Elasticsearch 全文检索
-
Elasticsearch 检索文档 GET
检索文档 使用GET指令 curl -X GET "localhost:9200/megacorp/employee/1?pretty=true" 输出: {
2019-04-25, Views: 2407 , Topics: Elasticsearch
-
Elasticsearch GET/PUT/DELETE/HEAD 指令
新增或更新 PUT 获取 GET 删除 DELETE 检查是否存在 HEAD
2019-04-25, Views: 3206 , Topics: Elasticsearch
-
Elasticsearch 插入数据 PUT
插入数据 使用PUT方法 curl -X PUT "localhost:9200/megacorp/employee/1" -H 'Content-Type:
2019-04-25, Views: 3817 , Topics: Elasticsearch