✨
Emergency-Response
  • 介绍
  • Windows
    • 系统信息
    • 进程与端口
    • 服务
    • 日志分析
    • 相关工具
  • Linux
    • 系统信息
    • 进程与端口
    • 服务
    • 文件分析
    • 日志分析
    • 相关工具
    • 案例
      • Redis
      • SSH
      • 短连接
      • 挖矿木马排查
  • Web
    • 拒绝服务攻击
    • WebShell查杀
    • 日志分析
  • DataBase
    • MSSQL
    • MySQL
  • 杂项
    • 钓鱼邮件分析
    • 分析工具
    • 勒索病毒工具
Powered by GitBook
On this page
  • 使用
  • 方法一
  • 方法二
  • 方法三
  • 入侵排查
  • 查询已安装的服务

Was this helpful?

  1. Linux

服务

使用

方法一

使用chkconfig让服务开机自启:

chkconfig [--level 运行级别] [独立服务名] [on|off]
chkconfig –level  2345 httpd on  开启自启动
chkconfig httpd on (默认level是2345)

方法二

修改/etc/re.d/rc.local 文件  
加入 /etc/init.d/httpd start

方法三

使用ntsysv命令自管理。

入侵排查

查询已安装的服务

RPM包安装的服务

$ chkconfig  --list # 查看服务自启动状态
$ ps aux | grep crond  # 查看当前服务

# 系统在3与5级别下的启动项 
# 中文环境
$ chkconfig --list | grep "3:启用\|5:启用"
# 英文环境
$ chkconfig --list | grep "3:on\|5:on"

源码安装的服务

搜索/etc/rc.d/init.d目录,查看是否存在。

Previous进程与端口Next文件分析

Last updated 5 years ago

Was this helpful?