2016-06-14 105 views
1

我的下一個etcd.conf,如果我嘗試啓動下一個命令的ETCD服務,它拋出了下:ETCD未知作業時啓動服務

ubuntu$ service etcd start 

start: Unknown job: etcd 

etcd.conf

# vim:set ft=upstart ts=2 et: 
description "etcd" 
author "etcd maintainers" 

start on stopped rc RUNLEVEL=[2345] 
stop on runlevel [!2345] 

respawn 

setuid etcd 

env ETCD_DATA_DIR=/var/lib/etcd 
export ETCD_DATA_DIR 

exec /usr/bin/etcd --name="client1"\ 
--advertise-client-urls="http://172.16.8.244:2379,http://172.16.8.244:4001"\ 
--listen-client-urls="http://0.0.0.0:2379,http://0.0.0.0:4001" 
--listen-peer-urls "http://0.0.0.0:2380"\ 
--initial-advertise-peer.urls "http://172.16.8.244:2380"\ 
--initial-cluster-token $(uuidgen)\ 
--initial-cluster "cient2=http://172.16.8.244:2380"\ 
--initial-cluster-state "new" 
+0

你能顯示你用來運行的命令嗎?看來你正在構建ProjectCalico? –

+0

我使用「service etcd start」@ sel-fish –

回答

1

該錯誤信息與etcd無關,但是由暴發戶腳本造成。
當得到像start: Unknown job這樣的消息時,暴發戶腳本中肯定會出錯。你的情況:

--listen-client-urls="http://0.0.0.0:2379,http://0.0.0.0:4001" 
--listen-peer-urls "http://0.0.0.0:2380"\ 

我想你想要的是(錯過字符「\」在第一線年底):

--listen-client-urls="http://0.0.0.0:2379,http://0.0.0.0:4001"\ 
--listen-peer-urls "http://0.0.0.0:2380"\ 

你糾正此之後,您可以再次嘗試。

+0

是的,這是問題,非常感謝 –