小编use*_*ser的帖子

向我的“.profile”启动词没有执行

我正在尝试在我的个人资料中添加启动词,但是我收到了 "hstart: command not found"

sudo vi ~/.profile
alias hstart="$HOME/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/start-dfs.sh;$HOME/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/start-yarn.sh"
alias hstop="$HOME/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/stop-yarn.sh;$HOME/.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/stop-dfs.sh"
Run Code Online (Sandbox Code Playgroud)

.sh文件位置:

./.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin

find -iname "start-dfs.sh"
./.linuxbrew/Cellar/hadoop/2.7.3/libexec/sbin/start-dfs.sh
./.linuxbrew/Cellar/hadoop/2.7.3/sbin/start-dfs.sh
Run Code Online (Sandbox Code Playgroud)

bash alias .profile

2
推荐指数
1
解决办法
113
查看次数

标签 统计

.profile ×1

alias ×1

bash ×1