Open source software supply chain lighting plan, waiting for you>>>
When xcall.sh JPS is running, it will be prompted with an error “bash: JPS: command not found”
Check as follows:
JDK has been installed, the environment variables of JDK have been configured, and there is no problem in executing JPS command on this machine!
terms of settlement:
1. Switch the root user
su root
2. Create symbolic links
The path link target storage location of LN – s JPS
My settings are as follows:
ln -s /opt/module/jdk1.8.0_ 144/bin/jps /usr/local/bin/jps
Attached xcall.sh script:
#! /bin/bash
for i in master slave1 slave2
do
echo --------- $i ----------
ssh $i "$*"
done
Grant authority
chmod 777 xcall.sh
Similar Posts:
- Obstacle Elimination set: Slave_ IO_ R unning:No And slave_ IO_ R unning:Connecting reason
- MySQL [ERROR] Table ‘mysql.user’ doesn’t exist
- Failed to create symbolic link ‘/usr/bin/utserver’: File exists with Error: Cannot find…
- [Solved] Linux Oracle bash: “sqlplus / as sysdba”: command not found
- [Solved] Mysql Got fatal error 1236 from master when reading data from binary log: ‘Could not find first log file name in binary log index file’
- ERROR 3021 (HY000): This operation cannot be performed with a running slave io thread; run STOP SLAVE IO_THREAD FOR CHANNEL ” first.
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’
- How to Solve MYSQL ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repository
- ZBx appears in ZABBIX custom key_ NOTSUPPORTED: Unsupported item key.
- Super detail: command not found: the scratch solution (add the scratch environment variable to Zsh under MAC)