摘要: 阅读全文
posted @ 2017-05-19 13:37 yuancr 阅读(71) 评论(0) 推荐(0)
摘要: 如果系统没有安装rpm 请安装rpmwget http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpmyum install epel-releaserpm -Uvh nux-d 阅读全文
posted @ 2017-05-19 13:20 yuancr 阅读(422) 评论(0) 推荐(0)
摘要: 1,需要两台虚拟机 可以同为cs7 每台各弄三个节点 第一台服务器的ip为192.168.1.150 第二台服务器的ip为 192.168.1.106 2,每台服务器先搭建redis开发环境 1> 在根目录创建/alidata/webroot/redis 2> 然后执行命令下载tcl:wget ht 阅读全文
posted @ 2017-05-19 13:16 yuancr 阅读(169) 评论(0) 推荐(0)
摘要: yum install gcc 先下载安装gcc 并验证gcc是否安装成功rpm -qa |grep gcc1.输入命令wget http://download.redis.io/releases/redis-2.8.17.tar.gz2.解压tar xzf redis-2.8.17.tar.gz3 阅读全文
posted @ 2017-05-19 13:15 yuancr 阅读(91) 评论(0) 推荐(0)
摘要: 进入phbricator目录然后执行命令:./bin/config set phpmailer.smtp-user y@gdle.com ./bin/config set phpmailer.smtp-host mail.grdle.com ./bin/config set phpmailer.sm 阅读全文
posted @ 2017-05-19 13:14 yuancr 阅读(934) 评论(0) 推荐(0)
摘要: centos环境 首先下载三个依赖包: Phabricator wget https://github.com/phacility/phabricator/archive/master.zip Libphutil wget https://github.com/phacility/libphutil 阅读全文
posted @ 2017-05-19 13:13 yuancr 阅读(274) 评论(0) 推荐(0)
摘要: 前段时间重启公司服务器却发现tab无法补全 报错tmp/.xxx 在这里记录一下 解决办法mount -o remount, rw / 无法补全报错信息 red-only 解决办法mount -rw -o remount / 另外增加swap: dd if=/dev/zero of=swap.fil 阅读全文
posted @ 2017-05-19 13:10 yuancr 阅读(78) 评论(0) 推荐(0)
摘要: 由于当时php连接mongo突然拒绝连接 ,可视化工具能连接上,唯独php连接不上,经排查是扩展版本过低,升级1.6.10解决问题: wget http://pecl.php.net/get/mongo-1.6.10.tgz tar -zxvf mongo-1.6.10.tgzcd mongo-1. 阅读全文
posted @ 2017-05-19 13:05 yuancr 阅读(487) 评论(0) 推荐(0)
摘要: 首先要想升级php7 必须删除之前php文件 由于.sh安装 使用yum remove php* 是找不到安装报的 Yum remove php55w* 也是找不到对应的包的 以上命令都没办法直接进行删除 只好直接删除安装文件 Cd /alidata/server/ Rm -rf php-5.5.7 阅读全文
posted @ 2017-05-19 12:59 yuancr 阅读(235) 评论(0) 推荐(0)
摘要: 副本集添加用户名和密码:首先cd到主节点的bin目录下面 cd /alidata/webroot/mongodb-linux-x86_64-rhel62-3.2.7/bin然后openssl rand -base64 755 > mongo.keyfile并给权限chmod 400 mongo.ke 阅读全文
posted @ 2017-05-19 11:57 yuancr 阅读(890) 评论(0) 推荐(0)
摘要: 三台服务器ip地址:192.168.1.1 192.168.1.2 192.168.1.3 fork=true #以守护进程的方式运行,创建服务器进程 #安装mongodb时的日志文件 logpath=/alidata/approot/mongodb/mongodb-linux-x86_64-3.2 阅读全文
posted @ 2017-05-19 11:56 yuancr 阅读(89) 评论(0) 推荐(0)
摘要: //搜索框具体的ajax如下: <form class="form-wrapper cf"> <img src="__PUBLIC__/Home/img/shousuo.png" id="sousuo" style="position:absolute;margin-left:5px;height: 阅读全文
posted @ 2017-05-19 11:53 yuancr 阅读(1872) 评论(0) 推荐(0)
摘要: 自启 /alidata/webroot/mongodb-linux-x86_64-rhel62-3.2.7/bin/mongod -dbpath=/data/db --fork --port 27017 --logpath=/alidata/webroot/logs/work.log --logap 阅读全文
posted @ 2017-05-19 11:42 yuancr 阅读(99) 评论(0) 推荐(0)
摘要: 由于安装包和索引案例过多 如有需要 请咨询本人邮箱45124095@qq.com 阅读全文
posted @ 2017-05-19 11:39 yuancr 阅读(67) 评论(0) 推荐(0)
摘要: curl -XPUT 'http://192.168.1.1:9200/xiaodu/question/_mapping' -d '{ "properties": { "asid": { "type" : "long" }, "ask_time": { "type" : "long" }, "tit 阅读全文
posted @ 2017-05-19 10:21 yuancr 阅读(138) 评论(0) 推荐(0)
摘要: ElasticSearch 安装 安装前准备安装JDK7及以上版本(这里不再讲述JDK安装步骤)下载ElasticSearch安装包,点击 获取elasticsearch-2.1.1.tar.gz安装包(https://download.elasticsearch.org/elasticsearch 阅读全文
posted @ 2017-05-19 10:13 yuancr 阅读(641) 评论(0) 推荐(0)
摘要: /index/ 查看指定索引的详细信息/index/_search 查看指定索引下的数据 执行时先执行mapping_setting 然后执行 mapping.shik_smark最少切分ik_max_word则为细粒度的切分/_aliases 获取或操作索引的别名/index/type/创建或操作 阅读全文
posted @ 2017-05-19 10:09 yuancr 阅读(696) 评论(0) 推荐(0)
摘要: 三台服务器ip分别为:192.168.1.1 192.168.1.185 192.168.1.196 只需要编辑elasticsearch.yml文件即可 cluster.name: elasticsearch1node.name: node-svr19path.data: /alidata/web 阅读全文
posted @ 2017-05-19 10:06 yuancr 阅读(138) 评论(0) 推荐(0)
摘要: 1.需要安装包名称: elasticsearch-2.3.3.tar.gz //es elasticsearch-analysis-ik-1.9.3.zip //ik 中文分词 elasticsearch-analysis-pinyin-1.7.3.zip //拼音插件 elasticsearch- 阅读全文
posted @ 2017-05-19 09:59 yuancr 阅读(184) 评论(0) 推荐(0)