Nagios 监控windows 主机

之前我们装完nagios core ,我们查看host 页面只有一个主机,就是nagios 服务器本身

nagios3

现在我们来让nagios 监控window 主机
1. 编辑nagios 配置文件
vi …
more ...

Nagios Core 安装

Nagios

Nagios

参考官方安装文档

安装系统Centos7

[root@vnagios ~]# cat /etc/redhat-release
CentOS Linux release 7.2.1511 (Core)
  1. 安装需要用到的软件包:
yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-snmp unzip …
more ...

php 时区设置

今天在安装centreon时,发现要配置PHP的时间

image1

于是登录到centreon的服务器上找到并编辑php.ini

[root@localhost ~]# vim /etc/php.ini

修改date.timezone = 'asia/shanghai'

more ...

Linux 下的博客发布工具QTM

QTM的官方地址:
但是QTM 不支持 centos

我们可以采用fedroa的源进行安装

  1. [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 中所有的应用程序都不会在桌面上显示,我们需要在桌面上建立相应的快捷放松

  1. 进入图标目录
[root@w-r9t1w96 applications]# cd /usr/share/applications/
[root@w-r9t1w96 …
more ...

centos7卸载libreoffice

可以尝试
yum erase libreoffice\*
more ...

Centos7 安装遨游浏览器

由于chrome 无法正常更新,firefox 有时候经常假死,在linux 平台上使用浏览器,一直很麻烦

不过偶然间发现,遨游浏览器居然有linux版本

官网 …
more ...

Centos7 计划任务

我们有时候需要服务器自动更新或者定时间运行某个程序或或者脚本

需要用到crontabs

  1. 可以先查看一下当前机器上是否已 …
more ...

Centos 7 支持NTFS文件系统

我们知道默认大部分linux是不支持NTFS

如果有需要,我们需要安装ntfs-3g 来让系统支持ntfs

centos 默认的源中是没有nfts-3g的,需要额外加载

  1. 添加源,这里 …
more ...

mongodb启动不了:child process failed, exited with error number 100

  1. 发现公司的一个数据服务器,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 ...

Windows 7 优先使用无线网卡

windows7 无线网卡连接外网,网线连接内网

默认机器会走有线路

需要进行修改

  1. 进入无线网卡设置,选择IPv4的设置 Wireless Setup-1


  1. 在一般选项卡中选择 …
more ...

ssh 免密码登陆

  1. 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 ...

利用Word 链接博客,进行发布

Date 2016-06-06(Mon) By terry Category Life.
  1. 启动 word,点击文件---新建

  1. 新建后,会弹出一个注册博客的对话框
  2. 点击立即注册
  3. 然后选择博客供应商,由于我是利用wordpress自建的博客,所以直 …
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-tools
more ...

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 ...

Centos 安装 Nginx

根据nginx官网的说明:

可以进行如下操作:

编辑并且创建/etc/yum.repos.d/nginx.repo,输入以下内容

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

参考地址:https …

more ...