直接输入下面两条命令
echo java -jar /huizhi/zgrb/bin/socket_server.jar & > /etc/rc.local
echo searchd -c /huizhi/zgrb/zgshb/indexfolder/config.txt & >>/etc/rc.local
或者
vi /etc/rc.local
在该文件中添加如下两行
java -jar /huizhi/zgrb/bin/socket_server.jar &
searchd -c /huizhi/zgrb/zgshb/indexfolder/config.txt &