install-ipfcst-linx.sh 677 B

1234567891011121314151617181920212223242526272829303132333435
  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/monitor /etc/init.d/
  13. cp -f $basedir/settings/console /etc/init.d/
  14. cp -f $basedir/settings/reportquery /etc/init.d/
  15. chmod 777 /etc/init.d/monitor
  16. chmod 777 /etc/init.d/console
  17. chmod 777 /etc/init.d/reportquery
  18. update-rc.d monitor defaults
  19. update-rc.d console defaults
  20. update-rc.d reportquery defaults
  21. systemctl daemon-reload
  22. service monitor start
  23. service console start
  24. service reportquery start
  25. echo "Installation is complete!"