Nagios 监控windows 主机
之前我们装完nagios core ,我们查看host 页面只有一个主机,就是nagios 服务器本身
现在我们来让nagios 监控window 主机
1. 编辑nagios 配置文件
vi …more ...
php 时区设置
今天在安装centreon时,发现要配置PHP的时间
于是登录到centreon的服务器上找到并编辑php.ini
[root@localhost ~]# vim /etc/php.ini
修改date.timezone = 'asia/shanghai'
more ...Linux 下的博客发布工具QTM
我们可以采用fedroa的源进行安装
[root@localhost ~]# vim /etc/yum.repos.d/QTM.repo
2.添加下面的内容
[home_IndigoJo] name=QTM (Fedora_20) type=rpm-md baseurl=http://download.opensuse.org/repositories/home …more ...
Centos 桌面图标
Centos7 中所有的应用程序都不会在桌面上显示,我们需要在桌面上建立相应的快捷放松
- 进入图标目录
[root@w-r9t1w96 applications]# cd /usr/share/applications/ [root@w-r9t1w96 …more ...
centos7卸载libreoffice
可以尝试
yum erase libreoffice\*
Centos 7 支持NTFS文件系统
我们知道默认大部分linux是不支持NTFS
如果有需要,我们需要安装ntfs-3g 来让系统支持ntfs
centos 默认的源中是没有nfts-3g的,需要额外加载
- 添加源,这里 …
mongodb启动不了:child process failed, exited with error number 100
- 发现公司的一个数据服务器,mongodb 无法qidong
运行 service mongod start 出现如下错误
[root@CNSHAS-JD05 mongo]# service mongod start Starting mongod: about to fork child process, waiting until server is ready for connections. forked process: 2484 …more ...
ssh 免密码登陆
- linux Server 运行下面命令:
ssh-keygen -t rsa -P ''
例如:
[root@vcentos .ssh]# ssh-keygen -t rsa -P '' Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Your identification has been saved in /root/.ssh/id_rsa. Your public key …more ...
Windows 自动添加 共享打印机
使用下面的标本,保存为*.bat 文件
@echo off echo Add Printer echo .... sc config spooler start= auto net stop spooler & net start spooler net use \\服务器\IPC$ "密码" /user:"用户" rundll32 printui.dll,PrintUIEntry /in /n "\\服务器 …more ...
OVF和OVA的区别
OVF和OVA的区别
more ...nginx+ php 配置 access denied
之前配置nginx+php的时候,每次,访问html页面是正常的,但是一旦访问php的页面就出现acces denied.
后来发现是nginx配置问题/etc/nginx/conf.d/default.conf
server { listen 80; server_name localhost; #charset koi8-r; #access_log /var/log/nginx/log/host.access.log main; location / { root /data …more ...
Open-vm tools
Centos7 安装vmware-tools 时提示没有network tools的包,
在网上查了下,如果不想安装networks tools的话,可以选择安装open-vm-tools
yum -y install open-vm-toolsmore ...
centos 修改时区
1. 查看当前时区
date -R
2. 修改设置时区
方法(1)
tzselect
方法(2) 仅限于RedHat Linux 和 CentOS系统
timeconfig
方法(3) 适用于Debian
dpkg-reconfigure tzdata
方法(4)
(将Asia/shanghai-上海时区写入当前时区)#cp -f /usr/share …
more ...WordPress 文本编辑
代码的两种模式
模式一
[root@vcentos-nginx ~]# cat /etc/centos-release CentOS Linux release 7.2.1511 (Core) [root@vcentos-nginx ~]#
在代码的两头加入如下的字符<pre>代码</pre>
如:
代码
模式二
[root@vcentos-nginx ~]# cat …
more ...