简体   繁体   English

安装 devstack 时出错

[英]Error installing devstack

I am trying to install DevStack following the tutorial from here我正在尝试按照此处的教程安装 DevStack

It says I have to run ./stack.sh as non-root user and I did.它说我必须以非 root 用户身份运行./stack.sh并且我做到了。 But I am getting this error.但我收到此错误。

++ [[ -n False ]]
++ [[ False != \F\a\l\s\e ]]
++ date +%s
/home/mani/devstack/tools/install_prereqs.sh: line 80: /home/mani/devstack/.prereqs: Permission denied
+++ err_trap
+++ local r=1
+++ set +o xtrace
stack.sh failed

The user must still be in the sudoers file.用户必须仍在 sudoers 文件中。 So add the username while root run the command visudo and add the user name what ever it is under root ALL=(ALL) ALL因此,在 root 运行命令visudo添加用户名并在 root 下添加用户名 ALL=(ALL) ALL

so you will have:所以你将拥有:

root ALL=(ALL) ALL
newuserX ALL=(ALL) ALL

re-run ./stack.sh as regular user (with sudo permissions)以普通用户身份重新运行 ./stack.sh(具有 sudo 权限)

might want to clean any previous install attempts with ./clean.sh first, before re-install在重新安装之前,可能希望首先使用 ./clean.sh 清除任何以前的安装尝试

After running ./create-stack-user.sh, try this运行 ./create-stack-user.sh 后,试试这个

chown -R stack:stack /opt/devstack(the path of the cloned devstack) 
su stack 
./stack.sh .

I've stuck with the same problem and this worked..!!我遇到了同样的问题,这奏效了..!!

Your error stack.sh failed with Permission denied您的错误stack.sh failed with Permission denied

This will fix for centos 7x这将修复 centos 7x

cd /opt/
chmod 755 stack
cd stack
chmod 755 devstack

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM