ITPub博客

首页 > Linux操作系统 > Linux操作系统 > linux开机运行脚本

linux开机运行脚本

原创 Linux操作系统 作者:huskar_y 时间:2016-06-12 13:35:42 0 删除 编辑
编写脚本
#/bin/bash

mkdir /home/1/

修改/etc/rc.d/rc.local
#!/bin/sh
#
# 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
/home/test.sh

reboot

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/30633998/viewspace-2118928/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: CentOS 6.5 安装VNC
下一篇: oracle之约束
请登录后发表评论 登录
全部评论

注册时间:2015-12-14

  • 博文量
    132
  • 访问量
    96211