linux 开机启动自己定义的shell命令

来源:互联网 发布:windows的用户名怎么改 编辑:程序博客网 时间:2024/04/27 17:46

1. vi /etc/rc.local

2.将命令写入例如

mount -t nfs dns:/home/hadoop/share /nfs_share

3. chmod +x /etc/rc.d/rc.local

这样就可以了


0 0