博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Linux开机自动启动软件/可执行程序方法-一个示例
阅读量:2029 次
发布时间:2019-04-28

本文共 826 字,大约阅读时间需要 2 分钟。

/etc/rc.d/rc.local

#!/bin/bash# THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES## It is highly advisable to create own systemd services or udev rules# to run scripts during boot instead of using this file.## In contrast to previous versions due to parallel execution during boot# this script will NOT be run after all other services.## Please note that you must run 'chmod +x /etc/rc.d/rc.local' to ensure# that this script will be executed during boot.touch /var/lock/subsys/localrmmod ixgbemodprobe ixgbe allow_unsupported_sfp=1service network restartcd /opt/dpdk-16.11/tools./bind.sh#开机启动at now+1 minutes < /root/mybash.sh &

/root/mybash.sh

#!/bin/bashexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/some/pathecho Start OM `date` >> /root/mybash.startcd /my/execution/path(nohup /my/execution/path/exe 1>/root/mybash.log 2>&1 &)cd -

 

转载地址:http://scpaf.baihongyu.com/

你可能感兴趣的文章
vector中resize()和reserve()区别
查看>>
c++ 标准库的各种容器
查看>>
map、hash_map和unordered_map
查看>>
tcpdump抓包规则常用命令
查看>>
【C++】explicit关键字
查看>>
八大排序算法
查看>>
动态规划
查看>>
各种Mutex(互斥量)的区别
查看>>
自旋锁和互斥锁区别
查看>>
进程间通信---共享内存
查看>>
HTTP协议详解
查看>>
linux中mmap系统调用原理分析与实现
查看>>
linux 共享内存shm_open实现进程间大数据交互
查看>>
Linux启动过程详解
查看>>
LINUX udhcpc命令
查看>>
Web Service 的工作原理
查看>>
onvif规范 中文介绍
查看>>
基于 SquashFS 构建 Linux 可读写文件系统
查看>>
浏览器访问网页的详细内部过程
查看>>
C++ 11
查看>>