码迷,mamicode.com
首页 > 系统相关 > 详细

vim -d file01 file02 diff file01 file02 对比两文件的不同

时间:2016-07-20 09:08:02      阅读:139      评论:0      收藏:0      [点我收藏+]

标签:

[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 对比两文件的不同

标签:

原文地址:http://www.cnblogs.com/bass6/p/5686995.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!