• Ossec常用命令


    • 启动并查看httpd服务
    systemctl start httpd
    systemctl status httpd.service 
    
    • 启动并查看mysql服务
    systemctl start mariadb
    systemctl status mariadb.service 
    
    • 启动并查看sendmail服务
    systemctl start  sendmail.service 
    systemctl status sendmail.service 
    
    •  批量重启apache、mysql、sendmail服务
    for i in {httpd,mariadb,sendmail};do systemctl restart $i ;done
    • 重新启动OSSEC
    /opt/ossec/bin/ossec-control restart
    • 查看OSSEC状态
    /opt/ossec/bin/ossec-control status
    • Web界面文件存放目录
    /var/www/html/analogi
    • apache应用的虚拟目录
    /etc/httpd/conf.d/analogi.conf
    •  客户端添加导出Key
    /opt/ossec/bin/manage_agents
    •  agent相关配置
    /opt/ossec/bin/manage_agents
    
       (A)dd an agent (A).
       (E)xtract key for an agent (E).
       (L)ist already added agents (L).
       (R)emove an agent (R).
       (Q)uit.
    
    Choose your action: A,E,L,R or Q: A

    解决方法:
    在php.ini里加上
    date.timezone = "Asia/Shanghai"

    date.timezone = PRC
  • 相关阅读:
    MSDN2010安装及使用(MSDN Library)[转]
    单元测试那些事
    Nhibernate Profiler安装中的问题
    ztree的动态添加
    事件与委托
    linux ls dir
    学习技术资料的思路
    linux目录结构
    是否需要深入了解java平台
    工作中心的改变
  • 原文地址:https://www.cnblogs.com/tdcqma/p/5668771.html
Copyright © 2020-2023  润新知