首先我安装了UBUNTU 14.04 64bit / 32bit(尝试使用UBUNTU 16.04 64bit)。
当我启动mup setup
时,我收到以下错误消息:
----------------------------------
Started TaskList: Setup Docker
[xx.xx.xx.xx] - Setup Docker
[xx.xx.xx.xx] - Setup Docker: SUCCESS
Started TaskList: Setup Meteor
[xx.xx.xx.xx] - Setup Environment
[xx.xx.xx.xx] - Setup Environment: SUCCESS
Started TaskList: Setup Mongo
[xx.xx.xx.xx] - Setup Environment
[xx.xx.xx.xx] - Setup Environment: SUCCESS
[xx.xx.xx.xx] - Copying mongodb.conf
[xx.xx.xx.xx - Copying mongodb.conf: SUCCESS
Started TaskList: Start Mongo
[xx.xx.xx.xx] - Start Mongo
[xx.xx.xx.xx] x Start Mongo: FAILED
-----------------------------------STDERR-----------------------------------
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var
/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
-----------------------------------STDOUT-----------------------------------
----------------------------------------------------------------------------
我在VPS中创建了一个用户名并授予它以便在没有sudo
的情况下工作,我也尝试使用root访问权限,但所有时间都是相同的错误。
在VPS中的所有内容之前启动此命令:apt-get update
这是我的MUP
版本:1.3.7(在Windows 7 64位下)
此处mup.js
文件:
module.exports = {
servers: {
one: {
host: 'xx.xx.xx.xx',
username: 'myusername',
password: 'password',
}
},
meteor: {
name: 'myApp',
path: '../myApp',
servers: {
one: {}
},
buildOptions: {
serverOnly: true
},
env: {
ROOT_URL: 'https://m.domain.com',
MONGO_URL: 'mongodb://localhost/meteor'
},
docker:{
image: 'abernix/meteord:base'
},
deployCheckWaitTime: 96,
enableUploadProgressBar: false
},
mongo: {
oplog: true,
port: 27017,
version: '3.4.1',
servers: {
one: {}
}
}
};
当我尝试从VPS重启docker时,这里出现错误消息:
Job for docker.service failed because the control process exited with error code. See "systemctl status docker.service" and "journalctl -xe" for details.
这里是日志中的错误:
Your Linux kernel version 2.6.32-042stab127.2 is not supported for running docker. Please upgrade your kernel to 3.10.0 or newer.
答案 0 :(得分:0)
在我看来,你错误配置了
env: {
ROOT_URL: 'https://m.domain.com',
MONGO_URL: 'mongodb://localhost/meteor'
},
mup创建一个mongo容器,并使用您的应用程序名称命名数据库
env: {
ROOT_URL: 'https://m.domain.com',
MONGO_URL: 'mongodb://localhost/myapp'
},
它应该可行