Home > OS >  SSH remote command execution
SSH remote command execution

Time:11-01

I'm going to SSH remote services
SSH bigdata1 hadoop - daemon. Sh start datanode
But to find order
I configured the ~/bashrc environment variable
Perform other SSH remote command can
Eg: SSH bigdata1 ifconfig


I'm bigdata root on the unit can run hadoop - daemon. Sh start datanode

CodePudding user response:

SSH bigdata1 ~/hadoop - daemon. Sh start datanode

Use absolute paths

CodePudding user response:

reference 1/f, brushed butterfly dream response:
SSH bigdata1 ~/hadoop - daemon. Sh start datanode

Using the absolute path


Use absolute paths can be, but I have seen the somebody else also can not use absolute paths, how to do?

CodePudding user response:

On the PATH of

CodePudding user response:

reference brushed butterfly dream reply: 3/f
under their PATH



In the/etc/profile and ~/. Bashrc path I added

CodePudding user response:

reference 4 floor weixin_40432088 response:
Quote: reference brushed butterfly dream reply: 3/f

In the PATH of



In the/etc/profile and ~/bashrc path I have added

Under the executable command is not in the/bin

CodePudding user response:

, don't know why you added, and the path is the executable path index system, and direct input command, you will be on the path to find

CodePudding user response:

PATH added, any source to let him take effect?
  • Related