安装全过程,帮忙看下, [root@2g var]# srcelasticsearch restart -bash: srcelasticsearch: command not found #这一步就出问题了,不知道什么原因!
srcelasticsearch restart为何我使用这个段命令等不到下面的信息 [root@2g ~]# srcelasticsearch restart -bash: srcelasticsearch: command not found#我的是这样的 rcelasticsearch restart#红色你安装教程里的信息 Stopping ElasticSearch... Stopped ElasticSearch. Starting ElasticSearch... Waiting for ElasticSearch...... running: PID: xxxxx [root@2g ~]# curl http://127.0.0.1:9200 { "ok" : true, "status" : 200, "name" : "Goblin Queen", "version" : { "number" : "0.90.2", "snapshot_build" : false, "lucene_version" : "4.3.1" }, "tagline" : "You Know, for Search" "cover" : "DON'T PANIC",#我没有得到红色这部分信息 "quote" : { "book" : "The Hitchhiker's Guide to the Galaxy", "chapter" : "Chapter 8", "text1" : "\"Space,\" it says, \"is big. Really big. You just won't believe how vastly hugely mindbogglingly big it is. I mean you may think it's a long way down the road to the chemist, but that's just peanuts to space, LISTEN!\" and so on..." } 所以我不确定是否安装成功。
netstat -a 也没有找到 9200端口 [root@2g ~]# ps -A PID TTY TIME CMD 6956 ? 00:00:00 sshd 6958 pts/1 00:00:00 bash 7061 ? 00:00:00 elasticsearch-l #不知道这个算不算启动了。 7063 ? 00:00:09 java 7141 pts/1 00:00:00 ps
elasticsearch很容易装的 wget, 解压以后copy到usr/local/elasticsearch 然后进目录执行elasticseach install 改那两个conf文件, 注意2g ram 把1024改成512没, 不然你跑别的就没戏了, 1g根本没办法跑xenforo+elasticsearch, 然后执行elasticsearch start就行le
en, 不过貌似digitalocean已经不是什么好的choice了, 新的choopa弄了个vultr.com去和do去拼, 现在promotion, 加一百给一百的credit, 现在还没有backup solution, 不过不要紧。 那些个datacenter看起来很牛逼的样子