[root@86 vhosts]# vim -d defaul.conf.bak zabbix.xinxianm.com.conf
server {                                            |  server {
listen 80; | listen 80;
server_name localhost; | server_name localhost zabbix.xinxianm.com;
index index.html index.htm index.php; | index index.html index.htm index.php;
root /alidata/www/default; | root /usr/html/zabbix;
location ~ .*\.(php|php5)?$ | location ~ .*\.(php|php5)
{ | {
#fastcgi_pass unix:/tmp/php-cgi.soc| #fastcgi_pass unix:/tmp/php-cgi.soc
fastcgi_pass 127.0.0.1:9000; | fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php; | fastcgi_index index.php;
include fastcgi.conf; | include fastcgi.conf;
----------------------------------------------------| fastcgi_param PATH_INFO $fastcgi_scr
} | }
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ | location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{ | {
expires 30d; | expires 30d;
} | }
location ~ .*\.(js|css)?$ | location ~ .*\.(js|css)?$
{ | {
expires 1h; | expires 1h;
} | }
#α¾²Ì¬¹æÔò | ----------------------------------------------------
include /etc/nginx/rewrite/default.conf; | include /etc/nginx/rewrite/default.conf;
access_log /var/log/nginx/default.log; | access_log /var/log/nginx/zabbix.log;
} | }
~ | ~
~ | ~
~ | ~
~ | ~
~ | ~
~ | ~
~ | ~
~ | ~
~ | ~
defaul.conf.bak 1,1 All zabbix.xinxianm.com.conf 1,1 All
"zabbix.xinxianm.com.conf" 24L, 550C

vim -d file01 file02 diff file01 file02 对比两文件的不同的更多相关文章

  1. diff.js 列表对比算法 源码分析

    diff.js列表对比算法 源码分析 npm上的代码可以查看 (https://www.npmjs.com/package/list-diff2) 源码如下: /** * * @param {Arra ...

  2. 使用diff和patch指令生成文件差异和还原文件

    使用diff和patch指令生成文件差异和还原文件 创建一个新的文件夹test然后进入test mkdir test cd test 首先创建文件a vim a.txt 随便输入一段文字后保存不退出. ...

  3. git 对比两个commit 之间的差异

    git 对比两个commit 之间的差异 比较两个版本之间的差异 git diff commit-id-1 commit-id-2 > d:/diff.txt 结果文件diff.txt中: &q ...

  4. python 对比两个字典的差异

    实际遇到的问题逻辑很繁杂,就不全写了.最后是通过对比两个字典差异来解决的.找出两个字典的差异,可参考以下代码. dict1 = {'a':1,'b':2,'c':3,'d':4} dict2 = {' ...

  5. linux对比两个文件的差异

    在项目维护阶段,经常会对垃圾文件进行清理.比如没有在数据库中的文件进行删除,这个时候最好的选择就是使用shell命令了:废话不多说直接上代码: 1.首先准备好从数据表导出来的数据,方法随意 2.在服务 ...

  6. 使用 shell 脚本自动对比两个安装目录并生成差异补丁包

    问题的提出 公司各个业务线的安装包小则几十兆.大则几百兆,使用自建的升级系统向全国百万级用户下发新版本时,流量耗费相当惊人.有时新版本仅仅改了几个 dll ,总变更量不过几十 K 而已,也要发布一个完 ...

  7. Python对比两个txt文件内容

    difflib模块作为python的标准库模块,无需安装,作用是比对文本之间的差异,且支持输出可读性比较强的html格式.#!coding=utf-8 # 2018-9-19 import sys i ...

  8. SQL Server对比两字段的相似度(函数算法)

    相似度函数 概述    比较两个字段的相似度    最近有人问到关于两个字段求相似度的函数,所以就写了一篇关于相似度的函数,分别是“简单的模糊匹配”,“顺序匹配”,“一对一位置匹配”.在平时的这种函数 ...

  9. Linux下对比两个文件夹的方法

    最近拿到一份源代码,要命的是这份源代码是浅克隆模式的git包,所以无法完整显示里面的修改的内容. 今天花了一点点时间,找了一个在Linux对比两个文件夹的方法. 其实方法很简单,用meld 去对比两个 ...

随机推荐

  1. iOS开源项目:SVPullToRefresh

    SVPullToRefresh也是一个下拉刷新的项目:https://github.com/samvermette/SVPullToRefresh SVPullToRefresh 允许你通过一行代码把 ...

  2. django 实现上传文件功能

    需求:自己写一个文件上传功能 代码: urls.py from django.conf.urls import url from django.contrib import admin from ap ...

  3. 服务 进程守护 MarsDaemon 简介

    MarsDaemon 基本功能 https://github.com/Marswin/MarsDaemon It is a lite library, you can make your projec ...

  4. [Algorithm -- Dynamic programming] How Many Ways to Decode This Message?

    For example we have 'a' -> 1 'b' -> 2 .. 'z' -> 26 By given "12", we can decode t ...

  5. Ajax datatype:'JSON'的error问题Status1:200,JSON格式

    转自:http://blog.sina.com.cn/s/blog_6e001be701017rux.html <script src="../js/jquery-1.8.0-vsdo ...

  6. (剑指Offer)面试题41:和为s的连续正数序列

    题目: 输入一个正数s,打印出所有和为s的连续正数序列(至少含有两个数).例如输入15,由于1+2+3+4+5=4+5+6=7+8=15,所以结果打印出3个连续序列1-5,,4-6和7-8. 思路: ...

  7. Android 读取assets文件下的txt文件

    android 读取assets文件下的txt文件,解决了读取txt文件的乱码问题: package com.example.com.scrollview; import java.io.Buffer ...

  8. 转:函数指针数组的妙用(I)

    转自:http://blog.sina.com.cn/s/blog_4c78b35f010008hi.html 笔者在开发某软件过程中遇到这样一个问题,前级模块传给我二进制数据,输入参数为 char* ...

  9. linux(Centos)下编译安装gcc4.8.2

    欢迎转载.转载请注明原文地址:http://blog.csdn.net/majianfei1023/article/details/46811159 近期要用到c++ 11,所以没办法仅仅得把那台ce ...

  10. 文字选中的js实现

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/ ...