我正在尝试运行此处提到的程序:http: //www.source-code.biz/snippets/java/7.htm
运行以下命令时,我看到错误:
./javaDaemonTest.sh install
错误如下
./javaDaemonTest.sh: line 29: .: /etc/rc.status: is a directory
./javaDaemonTest.sh: line 193: rc_reset: command not found
ln: creating symbolic link `/usr/local/sbin/rcjavaDaemonTest' to `/var/local/javaDaemonTest/javaDaemonTest.sh': File exists
./javaDaemonTest.sh: line 221: rc_exit: command not found
如何调试它?或者,如果您遵循本指南,您是否收到此错误?我的JAVA_HOME
路径设置正确。