Rob*_*rax 5 macos bash amazon-web-services aws-cli amazon-elastic-beanstalk
我按照这里的说明操作:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-install.html
这个pip安装--upgrade --user awsebcli运行正常,但是当我键入$ eb时
它说没有找到命令.
显然我必须修改路径变量:
echo $ SHELL.给我:/ bin/bash.
以下是说明:
1) Find your shell's profile script in your user folder. If you are not sure which shell you have, run echo $SHELL.
$ ls -a ~
. .. .bash_logout .bash_profile .bashrc Desktop Documents Downloads
Bash – .bash_profile, .profile, or .bash_login.
Zsh – .zshrc
Tcsh – .tcshrc, .cshrc or .login.
2) Add an export command to profile script.
export PATH=~/.local/bin:$PATH
This command adds a path, `~/.local/bin` in this example, to the current PATH variable.
3) Load the profile into your current session.
$ source ~/.bash_profile
Run Code Online (Sandbox Code Playgroud)
这对我没有任何意义:我为什么要跑$ ls -a ~
?我跑了
export PATH=~/.local/bin:$PATH
Run Code Online (Sandbox Code Playgroud)
并没有改变任何东西.3相同.
请告知如何让eb工作.谢谢.
更新:echo $ PATH给了我:
/Users/ME/bin/bash:/Users/ME/bin/bash.:/Users/ME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/mysql -5.7.11-osx10.9-x86_64的/ bin中:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/库/框架/ Python的.框架/版本/ 3.4 /斌:/Users/ME/.local/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/mysql-5.7.11-osx10.9-x86_64/斌:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:在/ usr/local/bin目录:在/ usr/bin中:/ bin中:/ usr/sbin目录:/ sbin目录:在/ usr/local/share下/ DOTNET
hel*_*loV 33
使用:
$ brew install awsebcli
Run Code Online (Sandbox Code Playgroud)
如下所述:在OS X上安装EB CLI
Homebrew专门用于OSX并且很好地处理依赖关系.
归档时间: |
|
查看次数: |
4857 次 |
最近记录: |