写一段liux开机启动的脚本
时间: 2024-05-22 12:16:17 浏览: 42
Linux开机启动顺序
#!/bin/bash
# This script is used for Linux system startup
# Set environment variables
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$PATH:$JAVA_HOME/bin
# Start the application
cd /opt/myapp
java -jar myapp.jar &
# End of script
阅读全文