install-ipfcst-linx.sh 552 B

12345678910111213141516171819202122232425262728293031
  1. #!/bin/sh
  2. export basedir=/home/syjy/ipfcstV3
  3. chmod -R 777 $basedir
  4. cd $basedir/jdk
  5. echo "Install jdk8!"
  6. tar -zxvf jdk-8u261-linux-x64.tar.gz
  7. if test -e /home/syjy/patch.zip
  8. then
  9. cd /home/syjy
  10. unzip -o patch.zip
  11. fi
  12. cp -f $basedir/settings/console /etc/init.d/
  13. cp -f $basedir/settings/reportquery /etc/init.d/
  14. chmod 777 /etc/init.d/console
  15. chmod 777 /etc/init.d/reportquery
  16. update-rc.d console defaults
  17. update-rc.d reportquery defaults
  18. systemctl daemon-reload
  19. service console start
  20. service reportquery start
  21. echo "Installation is complete!"