#!/bin/bash
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
# Example commands:
# Start a network service
#/sbin/service network start
# Run a custom script
#/path/to/your/script.sh
# Mount a network drive
#mount -t cifs //server/share /mnt/share -o username=user,password=pass
# Ensure the firewall is started
#/sbin/service firewalld start
exit 0
rc.local 文件是一个在系统启动时执行的脚本,通常位于 /etc/rc.local。exit 0 表示脚本成功执行完毕。上一篇:linux解压rar压缩包
下一篇:linux popen
Laravel PHP 深圳智简公司。版权所有©2023-2043 LaravelPHP 粤ICP备2021048745号-3
Laravel 中文站