Linux 开机重启
1、编写启动脚本
1. 创建start.sh:
vim start.sh
2. 编写脚本内容
#!/bin/bash
ulimit -SHn 102400
## 启动SDC
nohup sh /root/streamsets-datacollector/bin/streamsets dc &
## 将日志写入指定文件
nohup sh /root/streamsets-datacollector/bin/streamsets dc >> /data/javalog/nohup.out &
## 启动某个脚本
sh /root/streamsets-datacollector/bin/mybats.sh