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
Ossec常用命令的更多相关文章
- ossec 常用命令及目录说明
		1. /var/www/html/analogi -> ossec 第三方的web界面的安装目录 [root@ossec-server ~]# cd /var/www/html/analogi/ ... 
- Linux 常用命令(持续补充)
		常用命令: command &:将进程放在后台执行 ctrl + z:暂停当前进程 并放入后台 jobs:查看当前后台任务 bg( %id):将任务转为后台执行 fg( %id):将任务调回前 ... 
- LVM基本介绍与常用命令
		一.LVM介绍LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制LVM - 优点:LVM通常用于装备大量磁盘的系统,但它同样适 ... 
- Linux学习笔记(一):常用命令
		经过统计Linux中能够识别的命令超过3000种,当然常用的命令就远远没有这么多了,按照我的习惯,我把已经学过的Linux常用命令做了以下几个方面的分割: 1.文件处理命令 2.文件搜索命令 3.帮助 ... 
- git常用命令(持续更新中)
		git常用命令(持续更新中) 本地仓库操作git int 初始化本地仓库git add . ... 
- 【原】npm 常用命令详解
		今年上半年在学习gulp的使用,对npm的掌握是必不可少的,经常到npm官网查询文档让我感到不爽,还不如整理了一些常用的命令到自己博客上,于是根据自己的理解简单翻译过来,终于有点输出,想学习npm这块 ... 
- npm常用命令
		npm常用命令 环境:win7 npm 是什么 NPM(node package manager),通常称为node包管理器.顾名思义,它的主要功能就是管理node包,包括:安装.卸载.更新.查看.搜 ... 
- Git 常用命令
		一.初始環境配置 git config --global user.name "John Doe"git config --global user.email johndoe@ex ... 
- linux iptables常用命令之配置生产环境iptables及优化
		在了解iptables的详细原理之前,我们先来看下如何使用iptables,以终为始,有可能会让你对iptables了解更深 所以接下来我们以配置一个生产环境下的iptables为例来讲讲它的常用命令 ... 
随机推荐
- sql拆分查询
			有这样一个需求: 临时表sql: create table #AA ( ID int, Name nvarchar(20) ) insert #AA select 1,'苏州/上海/温州' union ... 
- hdu 5755 2016 Multi-University Training Contest 3 Gambler Bo 高斯消元模3同余方程
			http://acm.hdu.edu.cn/showproblem.php?pid=5755 题意:一个N*M的矩阵,改变一个格子,本身+2,四周+1.同时mod 3;问操作多少次,矩阵变为全0.输出 ... 
- 【quartz】 数据库方式管理任务
			public static void Run(bool inClearJobs, bool inScheduleJobs) { var properties = new NameValueCollec ... 
- nullptr和NULL
			nullptr是c++11中的关键字,表示空指针 要区分nullptr和NULL,首先要明白NULL的含义: NULL是一个宏定义,在c和c++中的定义不同,c中NULL为(void*)0,而c++中 ... 
- How to Implement Bluetooth Low Energy (BLE) in Ice Cream Sandwich
			ShareThis - By Vikas Verma Bluetooth low energy (BLE) is a feature of Bluetooth 4.0 wireless radio t ... 
- WWDC 2016: Rich Notifications in iOS 10
			Notifications have gotten more than a visual refresh in iOS 10. As part of the new UserNotifications ... 
- 如何解决Mac与iPhone之间handoff连接问题
			首先账户以及设备handoff开关问题不再赘述.主要是昨天发现的一个小技巧 当确认所有设备的iCloud账号统一.蓝牙打开.处在同一WiFi下的前提下,我的iPhone和Mac仍然handoff连接有 ... 
- shell脚本积累
			统计当前目录下文件夹的大小 for d in $(ls) do du -sh ./$d done 获取之前日期date +"%Y%m%d" -d "-n days&q ... 
- 输入两棵二叉树A,B,判断B是不是A的子结构。(ps:我们约定空树不是任意一个树的子结构)
			// test20.cpp : 定义控制台应用程序的入口点. // #include "stdafx.h" #include<iostream> #include< ... 
- 编写一个递归函数,输出vector对象的内容
			// test14.cpp : 定义控制台应用程序的入口点. // #include "stdafx.h" #include<iostream> #include< ... 
