kali系统添加开机启动项

kali系统添加开机启动项简单点的 1 在 etc 目录下创建命令 sudotouch etc rc local 文件 2 添加权限 sudochmod x etc rc local3 编辑 rc local sudovim etc rc local 加入下面的代码 bin bash THISFILEISAD

简单点的:

1、在etc目录下创建命令:sudo touch /etc/rc.local 文件

2、添加权限:sudo chmod +x /etc/rc.local

3、编辑rc.local:sudo vim /etc/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. #启动命令添加在exit 0前面重启即可 exit 0 
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/217551.html原文链接:https://javaforall.net

(0)
上一篇 2026年3月18日 上午9:19
下一篇 2026年3月18日 上午9:19


相关推荐

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号