我是juju魅力的新手,我正在尝试按照youtube教程安装juju charm工具
https://www.youtube.com/watch?v=BQ_blv9JhCs
我在windows box上为ubuntu安装了vm镜像。 ubuntu版本的详细信息是 -
Linux vagrant-ubuntu-vivid-64 3.19.0-21-generic#21-Ubuntu SMP Sun Jun 14 18:31:11 UTC 2015 x86_64 x86_64 x86_64 GNU / Linux
我能够成功地运行教程中提到的步骤直到" juju bootstrap"。仅限于juju bootstrap,我收到以下错误 -
Bootstrapping environment "local"
Starting new instance for initial state server
Building tools to upload (1.24.3.1-vivid-amd64)
Bootstrapping environment "local"
Starting new instance for initial state server
Building tools to upload (1.24.3.1-vivid-amd64)
Installing Juju agent on bootstrap instance
Logging to /home/vagrant/.juju/local/cloud-init-output.log on remote host
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Reading package lists...
Building dependency tree...
Reading state information...
curl is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
cpu-checker is already the newest version.
cpu-checker set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
bridge-utils is already the newest version.
bridge-utils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
rsyslog-gnutls is already the newest version.
rsyslog-gnutls set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
cloud-utils
0 upgraded, 1 newly installed, 0 to remove and 24 not upgraded.
Need to get 1,568 B of archives.
After this operation, 31.7 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu/ vivid/main cloud-utils all 0.27-0ubuntu15 [1,568 B]
Fetched 1,568 B in 5s (296 B/s)
Selecting previously unselected package cloud-utils.
(Reading database ... 66876 files and directories currently installed.)
Preparing to unpack .../cloud-utils_0.27-0ubuntu15_all.deb ...
Unpacking cloud-utils (0.27-0ubuntu15) ...
Setting up cloud-utils (0.27-0ubuntu15) ...
Reading package lists...
Building dependency tree...
Reading state information...
cloud-image-utils is already the newest version.
cloud-image-utils set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
tmux is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 24 not upgraded.
945f7daba6d7d7f7d441d6536d513a61b6ccaf92d858bbc86a0038c9b97bd01d /home/vagrant/.juju/local/tools/1.24.3.1-vivid-amd64/tools.tar.gz
2015-07-29 21:37:51 INFO juju.cmd supercommand.go:37 running jujud [1.24.3.1-vivid-amd64 gc]
2015-07-29 21:37:51 INFO juju.network network.go:194 setting prefer-ipv6 to false
2015-07-29 21:37:51 INFO juju.provider.local environprovider.go:38 opening environment "local"
2015-07-29 21:37:54 INFO juju.agent identity.go:22 writing system identity file
2015-07-29 21:37:54 INFO juju.mongo mongo.go:173 Ensuring mongo server is running; data directory /home/vagrant/.juju/local; port 37017
2015-07-29 21:37:54 INFO juju.mongo mongo.go:348 installing juju-mongodb
2015-07-29 21:37:54 INFO juju.utils.packaging.manager utils.go:57 Running: apt-get --option=Dpkg::Options::=--force-confold --option=Dpkg::options::=--force-unsafe-io --assume-yes --quiet install juju-mongodb
2015-07-29 21:42:55 INFO juju.worker.peergrouper initiate.go:77 finished MaybeInitiateMongoServer
***指** 2015-07-29 21:42:55错误juju.cmd supercommand.go:430无法启动副本集:无法拨打mongo来启动replicaset:no
可到达的服务器 ERROR无法引导环境:退出状态1 *****
我尝试过destroy-environment并再次运行bootstrap命令。从juju-mongodb安装的消息看来,但我看不到服务正在运行。我无法使用 -
运行服务sudo service mongodb start。
输出是 -
vagrant @ vagrant-ubuntu-vivid-64:〜$ sudo service mongod start 无法启动mongod.service:单元mongod.service无法加载:没有这样的文件或目录。
我做错了什么?如何检查mongodb是否安装正确?
谢谢,