anchor.diff:  [[setup]]
  -= Setup
  += 安装
   
   [partintro]
   --
  -This section includes information on how to setup *elasticsearch* and
  -get it running. If you haven't already, http://www.elastic.co/downloads[download] it, and
  -then check the <<setup-installation,installation>> docs.
  +本节包括如何安装和运行 *elasticsearch* 等内容. 如果你还没有安装过Elasticsearch, 那么首先
  + http://www.elastic.co/downloads[下载]它, 然后查阅 <<setup-installation,安装>> 文档.
   
  -NOTE: Elasticsearch can also be installed from our repositories using `apt` or `yum`.
  -See <<setup-repositories>>.
  +NOTE: Elasticsearch也可以通过使用 `apt` 或者 `yum` 从我们的仓库安装.参见 <<setup-repositories,仓库>>.
   
   [[supported-platforms]]
   [float]
  -== Supported platforms
  +== 支持的平台
   
  -The matrix of officially supported operating systems and JVMs is available here:
  -link:/support/matrix[Support Matrix].  Elasticsearch is tested on the listed
  -platforms, but it is possible that it will work on other platforms too.
  +官方所支持的操作系统和JVM矩阵可以在这里找到:
  +link:/support/matrix[平台支持矩阵].  Elasticsearch已经在列举出来的平台上测试过, 但是它也有可能工作于其它平台上.
   
   [[setup-installation]]
   [float]
  -== Installation
  +== 安装
   
  -After link:/downloads/elasticsearch[downloading] the latest release and extracting it,
  -*elasticsearch* can be started using:
  +在 link:/downloads/elasticsearch[下载] 了Elasticsearch最新发布的版本并解压之后, 可以使用如下命令来启动
  +*elasticsearch* :
   
   [source,sh]
   --------------------------------------------------
   $ bin/elasticsearch
   --------------------------------------------------
   
  -On *nix systems, the command will start the process in the foreground.
  +在类Unix系统上, 该命令会在前台启动Elasticsearch进程.
   
   [[setup-installation-daemon]]
   [float]
  -=== Running as a daemon
  +=== 作为守护进程运行
   
  -To run it in the background, add the `-d` switch to it:
  +如果想要在后台运行它, 可以增加 `-d` 选项:
   
   [source,sh]
   --------------------------------------------------
  
positive.code: 
  [float]
  [[jvm-version]]
  == Java (JVM) version
  
  Elasticsearch is built using Java, and requires at least
  http://www.oracle.com/technetwork/java/javase/downloads/index.html[Java 8] in
  order to run. Only Oracle's Java and the OpenJDK are supported. The same JVM
  version should be used on all Elasticsearch nodes and clients.
  
  We recommend installing the *Java 8 update 20 or later*, or *Java 7 update 55
  or later*.  Previous versions of Java 7 are known to have bugs that can cause
  index corruption and data loss.  Elasticsearch will refuse to start if a
  known-bad version of Java is used.
  
  The version of Java to use can be configured by setting the `JAVA_HOME`
  environment variable.
  
  --
  
  
negative.code: [float]
  === PID
  
  Elasticsearch进程在启动的时候可以将其PID写到一个指定的文件中, 这样便于后面关闭这个进程:
  
  [source,sh]
  --------------------------------------------------
  $ bin/elasticsearch -d -p pid <1>
  $ kill `cat pid` <2>
  --------------------------------------------------
  <1> PID被写入到 `pid` 文件中.
  <2> `kill` 命令给存储在 `pid` 文件中的PID发送了一个 `TERM` 信号.
  
  NOTE: 为 <<setup-service,Linux>> 和 <<setup-service-win,Windows>>系统提供的启动脚本可以帮你处理Elasticsearch进程的启动和停止.
  
  .*NIX
  *************************************************************************
  当使用 `elasticsearch` 的 shell 脚本时有几个新增的特性.
  第一个我们之前已经描述过, 就是能够很简单的在前台或后台运行Elasticsearch进程.
  
  另一个特性是能够直接给脚本传递 `-D` 或 getopt 长风格配置参数. 如果设置了, 都将覆盖使用 `JAVA_OPTS` 或 `ES_JAVA_OPTS` 设置的任何参数. 例如:
  
  [source,sh]
  --------------------------------------------------
  