debian开机启动管理】的更多相关文章

debian开机启动管理(转文) linux下,services的启动.停止等通常是通过/etc/init.d的目录下的脚本来控制的.在启动或改变运行级别是在/etc/rcX.d中来搜索脚本.其中X是运行级别. 比如Apache2,安装完成后,默认或启动.比如我安装了vagrant的LMPA的box.需要禁止掉自启动,就需要禁止掉这个服务,然后在需要的时候使用 /usr/sbin/apachectl start #/etc/init.d/apache2 start 在debian中使用 upda…
常用命令  使某服务自动启动 systemctl enable httpd.service 使某服务不自动启动 systemctl disable httpd.service 检查服务状态 systemctl status httpd.service (服务详细信息) systemctl is-active httpd.service (仅显示是否 Active) 显示所有已启动的服务 systemctl list-units --type=service 启动某服务 systemctl sta…
systemd提供更优秀的框架以表示系统服务间的依赖关系实现系统初始化时服务的并行启动,同时达到降低Shell的系统开销的效果systemd的目标是:尽可能启动更少进程:尽可能将更多进程并行启动.systemd尽可能减少对shell脚本的依赖. systemd单位类型 (systemctl --type=单位类型,用来过滤单位):服务(service):管理着后台服务:挂载(mount)自动挂载(automount):用来挂载文件系统:目票(target):运行级别:套接字(socket):用来…
常用命令 使某服务自动启动 systemctl enable httpd.service 使某服务不自动启动 systemctl disable httpd.service 检查服务状态 systemctl status httpd.service (服务详细信息) systemctl is-active httpd.service (仅显示是否 Active) 显示所有已启动的服务 systemctl list-units --type=service 启动某服务 systemctl star…
查看开机启动项 ls /etc/systemd/system/multi-user.target.wants/ 设置开机启动 systemctl enable mongodb.service…
CentOS下开机启动查看管理命令:chkconfig用法   CentOS下开机启动查看管理的命令是:chkconfig   1. 开机启动列表查看: chkconfig --list     说明:输出所有服务列表,如果列表中没有你要启动的服务 2. 添加服务:     chkconfig --add servicename 3. 删除服务:    chkconfig --del servicename   4. 查看具体启动服务信息:    chkconfig --list  servic…
设置MYSQL 首先拷贝mysql.server到/etc/init.d目录下命名为mysql # cp /自己的安装目录/mysql/share/mysql/mysql.server /etc/init.d/mysql 然后进入/etc/rc2.d目录,这是debian默认的启动级别.建立连接指向/etc/init.d/mysql # cd /etc/rc2.d # ln -s /etc/init.d/mysql S20mysql 重新启动系统后,mysql就自动启动了.   也就是说, 删除…
一.开机启动服务的配置 1.创建服务配置(权限754) vim /usr/lib/systemd/system/nginx.service 文件内容解释 [Unit]:服务的说明Description:描述服务After:描述服务类别 [Service]服务运行参数的设置Type=forking是后台运行的形式ExecStart为服务的具体运行命令ExecReload为重启命令ExecStop为停止命令PrivateTmp=True表示给服务分配独立的临时空间注意:启动.重启.停止命令全部要求使…
#!/bin/bash#chkconfig:235 80 20#description:start or stop vbox#Author:Qty~20180502#OS:RedHatEnterprise6.4,上传vbox至/etc/init.d/并赋权755,chkconfig --add vbox添加后可开机启动并用service命令管理 . /etc/rc.d/init.d/functions. /etc/sysconfig/network VBoxManage list vms &>…
由于某些软件并没有增加开启启动的服务,很多时候需要手工添加,一般我们都是推荐添加命令到 /etc/rc.local 文件,但是 Debian 9 默认不带 /etc/rc.local 文件,而 rc.local 服务却还是自带的 root@debian9 ~ # cat /lib/systemd/system/rc.local.service # This file is part of systemd. # # systemd is free software; you can redistr…