install-ipfcst-centos.sh 580 B

123456789101112131415161718192021222324252627282930313233343536
  1. #!/bin/sh
  2. export basedir=/home/syjy/ipfcstV3
  3. chmod -R 777 $basedir
  4. cd $basedir/jdk
  5. tar -zxvf jdk-8u261-linux-x64.tar.gz
  6. if test -e /home/syjy/patch.zip
  7. then
  8. cd /home/syjy
  9. unzip -o patch.zip
  10. fi
  11. cp -f $basedir/settings/console /etc/init.d/
  12. chmod 777 /etc/init.d/console
  13. if test -x /usr/lib/systemd/system
  14. then
  15. cp -f $basedir/settings/console.service /usr/lib/systemd/system
  16. chmod 777 /usr/lib/systemd/system/console.service
  17. systemctl daemon-reload
  18. systemctl enable console
  19. else
  20. chkconfig console on
  21. fi
  22. service console start
  23. echo "Installation is complete!"