devstack安装过程中出现syntax error
来源:互联网 发布:海康网络摄像机激活 编辑:程序博客网 时间:2024/05/18 03:00
在CentOS上安装devstack的时候遇到:
[stack@localhost ~]$ ./stack.sh sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginsudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginsudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginsudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginsudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 1 <<<sudo: >>> /etc/sudoers.d/50_stack_sh: syntax error near line 2 <<<sudo: parse error in /etc/sudoers.d/50_stack_sh near line 1sudo: no valid sudoers sources found, quittingsudo: unable to initialize policy pluginRDO repo not detected; installing++ proxychains /usr/bin/yum.bin install http://rdo.fedorapeople.org/openstack-havana/rdo-release-havana.rpmProxyChains-3.1 (http://proxychains.sf.net)Loaded plugins: fastestmirrorYou need to be root to perform this command.[Call Trace]./stack.sh:224:die[ERROR] ./stack.sh:224 Error installing RDO repo, cannot continue
切换到 root 用户,
会看到有这么一个文件 /etc/sudoers.d/50_stack_sh
[root@localhost stack]# cat /etc/sudoers.d/50_stack_sh ALL=(root) NOPASSWD:ALLDefaults: secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/bin
这个文件是在安装devstack之前,创建调用下面命令创建stack用户时生成的:
./tools/create-stack-user.sh
只需把这个文件改一下即可,
stack ALL=(ALL) NOPASSWD: ALLDefaults secure_path=/sbin:/usr/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/local/binDefaults !requiretty
0 0
- devstack安装过程中出现syntax error
- 在Ubuntu16.04中安装DevStack过程中出现的若干问题
- SQLite中出现错误:Error: near ")": syntax error
- devstack kilo版安装过程
- win10安装autocad 2013出现command line option syntax error
- DELL服务器安装过程中出现的ERROR及解决方案
- shell中出现syntax error: unexpected end of file
- Shell中EOF出现syntax error: unexpected end of file
- shell中出现syntax error: unexpected end of file
- C++中出现 syntax error : missing ';' before 'type'问题原因
- devstack安装出现rabbitmq-server安装错误
- VC中出现error C2143: syntax error : missing ';' before '*'错误的解决方案
- VC中出现error C2143: syntax error : missing ';' before '*'错误的解决方案
- VC中使用wxWidgets 出现的编译错误 error C2059: syntax error : 'constant' 解决
- VS中使用CXTPDockingPane出现的编译错误 error C2059: syntax error : 'constant' 解决
- 使用devstack安装openstack过程中遇到的一些错误及解决办法
- 安装SQL Server 200 ,出现错误提示:command line option syntax error,type command/? for help
- 安装phpbb3论坛中文语言包 出现的-bash: syntax error near unexpected token `('错误
- 靠大数据赚钱的方法与途径汇总(网摘)
- Java中集合list的add方法添加的是地址(引用)不是值
- 解决远程连接mysql错误1130
- bootcon和console使用不同的buffer
- .net mvc5(二)
- devstack安装过程中出现syntax error
- wmsys.wm_concat的几个用法
- [leetcode: Python]160. Intersection of Two Linked Lists
- Centos 7下报错load /etc/rc.d /init.d/network bad vndor preset disable
- Libgdx Label设置字体重心位置
- Tinker热修复加固
- IntelliJ IDEA Exception in thread "main" java.lang.ClassNotFoundException
- 怎么解决mysql远程连接报10038的错误(数据库主机3306未对外开放)
- android-刷新之二:PullToRefresh