摘要: elasticsearch 下载 - 解压 创建用户 elasticsearch不允许使用root用户启动 创建用户、授权 eg: useradd elastic -p xxxxxx chown -R elastic:elastic elasticsearch 后台启动 进入bin目录 ./elas 阅读全文
posted @ 2018-11-12 14:58 路漫漫灬 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 思路:利用跳板目录复制原数据到新磁盘,然后更改新磁盘到目标目录 mkdir /new ###跳板目录 mount /dev/sdb1 /new ###首先挂载跳板目录 cp -R /home/* /new ###复制/home目录所有数据到/new先 rm -rf /home/* ####可选,主要 阅读全文
posted @ 2018-11-12 14:49 路漫漫灬 阅读(4269) 评论(0) 推荐(0) 编辑
摘要: 1.安装支持https ./configure --prefix=/usr/local/nginx --with-http_ssl_module 2.缺少PCRE library ../configure: error: the HTTP rewrite module requires the PC 阅读全文
posted @ 2018-10-30 15:16 路漫漫灬 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 修改会话PATH, 添加/usr/bin, /bin export PATH=/usr/bin:/bin ls, vim, cd等基础命令回来了。 阅读全文
posted @ 2018-10-25 15:47 路漫漫灬 阅读(326) 评论(0) 推荐(0) 编辑
摘要: Nginx部分配置如下: //upstream配置 upstream my.upstream.com { server 10.1.1.2 max_fails=1 fail_timeout=10s; server 10.1.1.3 max_fails=1 fail_timeout=10s; #max_ 阅读全文
posted @ 2017-08-16 16:31 路漫漫灬 阅读(4116) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash log_path="/usr/local/nginx/logs/" mv ${log_path}eshop_access.log ${log_path}eshop_access_$(date -d "yesterday" +%Y_%m_%d).log nginx_pid=`ps aux |grep -E 'nginx: master process'|grep -v 'g... 阅读全文
posted @ 2016-08-10 14:16 路漫漫灬 阅读(222) 评论(0) 推荐(0) 编辑