参考:https://blog.csdn.net/qq_29663071/article/details/80814081 systemctl是RHEL 7 的服务管理工具中主要的工具,它融合之前service和chkconfig的功能于一体. 可以使用它永久性或只在当前会话中启用/禁用服务. 启动服务:systemctl start vsftpd.service 关闭服务:systemctl stop vsftpd.service 重启服务:systemctl restart vsftpd.s…
启动服务:systemctl start xxx.service 关闭服务:systemctl stop xxx.service 重启服务:systemctl restart xxx.service 显示服务的状态:systemctl status xxx.service 在开机时启用服务:systemctl enable xxx.service 在开机时禁用服务:systemctl disable xxx.service 查看服务是否开机启动:systemctl is-enabled xxx.…
启动Spring boot服务脚本 #!/bin/bash cd /test java -jar test.jar &> ./test.log & echo "成功" 关闭Spring boot服务脚本 #!/bin/bash APP_NAME="test.jar" echo "stop SpringBoot Application" pid=`ps -ef | grep $APP_NAME | grep -v grep |…
CentOS7 firewalld防火墙 常用命令1.firewalld的基本使用启动: systemctl start firewalld关闭: systemctl stop firewalld查看状态: systemctl status firewalld开机禁用 : systemctl disable firewalld开机启用 : systemctl enable firewalld 启动一个服务:systemctl start firewalld.service关闭一个服务:syste…
上周,Boss和我说,他儿子夜里爬起来用笔记本在被窝里玩CF,问路由器可以解决么,我看了是TPLINK的普通家用无线路由器,不支持禁用CF客户端网游,可以通过配置端口屏蔽什么的,但是白天又要开启,想想麻烦.还是写个win服务,定时禁用网卡和定时启用网卡. 思路是分为两步, 1. 要先获取到无线网卡的ID. 2. 然后定时关闭/启用这个无线网卡. 程序呢,也是分为2部分, 1. 用了winform 去获取所有网络适配器信息,看看找到无线网卡,然后记下网卡名. 2. 用win服务去遍历Win32_N…
The command chkconfig is no longer available in Ubuntu.The equivalent command to chkconfig is update-rc.d.This command nearly supports all the new versions of ubuntu. The similar commands are update-rc.d <service> defaults update-rc.d <service>…
有没有感觉到,自从装上Oracle之后,电脑变卡了?卡是正常的,oracle作为大型数据库软件,运行起来是非常吃内存的. 所以对于自用的电脑来说,不使用Oracle的时候,应该把Oracle的一系列服务关掉.你可以把Oracle的服务设置为手动开启,但是这样的话就需要你一个一个去开启服务,关闭服务,很麻烦. 我们可以有更简便都方法:写个脚本文件,把开启/关闭服务都命令写入脚本,运行脚本文件就可以. 在写脚本文件之前,我们先来看一下哪些Oracle服务是必须开启的,成功安装Oracle 11g后,…
windows(win10)批处理脚本 打开vm虚拟机的服务,并且开启无界面虚拟机 @echo off net start "vds" net start "VMAuthdService" net start "VMnetDHCP" net start "VMware NAT Service" net start "VMUSBArbService" net start "VMwareHostd&q…
大家都知道windows下绝大部分都是图形操作化,很少用命令来执行,例如启动.关闭orcl数据库服务时,一般情况都是在任务管理器(taskmgr.ctrl+shift+esc)或服务(services.msc)等方式找到orcl相关服务手动挨个挨个启动.关闭服务,这样个人感觉效率低,也很繁琐,今天教大家一个快速启动.关闭orcl服务的方法,方便你我他她....... 在cmd下有两种命令方法启动服务,分别为net和sc命令,区别是sc可以启动被禁用的服务 net语法是: net start 服务…
##查看服务在每个级别的运行状态 chkconfig --list httpd           0:关闭  1:关闭  2:关闭  3:关闭  4:关闭  5:启用  6:关闭 bluetooth       0:关闭  1:关闭  2:关闭  3:关闭  4:关闭  5:关闭  6:关闭 #停止 HTTPD服务  www.2cto.com [root@zhangxx etc]# service httpd stop 停止 httpd:[  确定  ] #启动httpd服务 [root@zh…