-
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: 4471 , Topics: Linux
-
Linux 增加 Swap 交换分区解决内存不足
Swap 交换分区简介 当系统的物理内存不够用的时候,就需要将物理内存中的一部分空间释放出来,以供当前运行的程序使用,那些被释放的空间可能来自一些很长时间没有什
2019-04-29, Views: 3999 , Topics: Linux
-
Linux 配置 top 命令显示 swap
进入 top 命令 top 进入配置界面 按f Fields Management for window 1:Def, whose current sort f
2019-04-29, Views: 7399 , Topics: Linux
-
Linux 查看内存信息
指令 cat /proc/meminfo 输出: MemTotal: 1016200 kB MemFree: 156916 kB
2019-04-29, Views: 3744 , Topics: Linux
-
Elasticsearch health status 显示为 yellow 解决方法
查看 health curl -XGET "http://localhost:9200/_cluster/health?pretty=true" 返回: {
2019-04-26, Views: 12475 , Topics: Elasticsearch
-
PHP 使用 Zend OPcache 字节码缓存
CentOS 安装 sudo yum install php-opcache 常用配置 ;开启OPcache。 opcache.enable=1 ;CLI环境
2019-04-26, Views: 3842 , Topics: PHP
-
Elasticsearch 短语搜索 query->match_phrase
短语搜索 精确匹配一系列单词或者短语。 使用match_phrase curl -X GET "localhost:9200/megacorp/employ
2019-04-25, Views: 4108 , Topics: Elasticsearch 全文检索
-
Elasticsearch 全文搜索 query->match
全文搜索 query->match curl -X GET "localhost:9200/megacorp/employee/_search?prett
2019-04-25, Views: 2859 , Topics: Elasticsearch 全文检索
-
Elasticsearch 使用 filter 和 range 过滤器搜索
使用过滤器搜索 query->bool->must->match filter->range curl -X GET "localhos
2019-04-25, Views: 4479 , Topics: Elasticsearch 全文检索
-
Elasticsearch 使用查询表达式搜索
查询表达式搜索 query->match curl -X GET "localhost:9200/megacorp/employee/_search?pr
2019-04-25, Views: 3818 , Topics: Elasticsearch 全文检索
-
Elasticsearch 出现 circuit_breaking_exception 异常
异常信息 { "error" : { "root_cause" : [ { "type" : "circuit_brea
2019-04-25, Views: 17872 , Topics: Elasticsearch
-
Elasticsearch 轻量搜索 _search 和 q=
轻量搜索 使用_search curl -X GET "localhost:9200/megacorp/employee/_search?pretty=true
2019-04-25, Views: 5261 , Topics: Elasticsearch 全文检索
-
Elasticsearch 检索文档 GET
检索文档 使用GET指令 curl -X GET "localhost:9200/megacorp/employee/1?pretty=true" 输出: {
2019-04-25, Views: 2872 , Topics: Elasticsearch
-
Elasticsearch GET/PUT/DELETE/HEAD 指令
新增或更新 PUT 获取 GET 删除 DELETE 检查是否存在 HEAD
2019-04-25, Views: 3870 , Topics: Elasticsearch
-
Elasticsearch 插入数据 PUT
插入数据 使用PUT方法 curl -X PUT "localhost:9200/megacorp/employee/1" -H 'Content-Type:
2019-04-25, Views: 4325 , Topics: Elasticsearch
-
Elasticsearch 获取记录总数 _count
计算文档数量 _count curl -XGET "localhost:9200/_count?pretty" 输出: { "count" : 0, "
2019-04-25, Views: 13019 , Topics: Elasticsearch
-
Elasticsearch 使用 RESTful API 进行通信
说明 一个Elasticsearch请求和任何HTTP请求一样由若干相同的部件组成: curl -X<VERB> '<PROTOCOL>
2019-04-25, Views: 3091 , Topics: Elasticsearch curl
-
Elasticsearch 监控运行状态
监控运行状态 curl -X GET "localhost:9200/_cluster/health" 输出: {"cluster_name":"elastic
2019-04-25, Views: 3719 , Topics: Elasticsearch