Warning: Undefined array key "cperpage" in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 255

Warning: Undefined variable $output in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 325

Warning: Undefined variable $fixed_tags in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 326

Warning: Undefined variable $isshowdots in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 327

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 330

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 333

Warning: Undefined variable $tag_aditional in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 336

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $post in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Attempt to read property "ID" on null in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345

Warning: Undefined variable $more_text_link in /www/wwwroot/www.now163.com/wp-content/themes/twentytwentyfive/functions.php on line 345
理想社会 – 第 2 页 – 记载我的成功之路

博客

  • 为Exchange2013申请并添加公网证书

    Let’s Encrypt提供3个月有效期的证书。可以一次申请多个域名,也可以直接申请泛域名。这里我们选择申请多个域名的证书。

    1、申请地址:https://freessl.org/  选择多域名,并填写需要申请的域名。

    2、输入联系邮箱,证书类型选择RSA。ECC证书导入到Exchange2013后,在ecp里面看不到,不知为何。。

    3、按照提示修改DNS的txt记录。等1分钟生效后,进行认证。即可生成证书。

    4、签发的证书是PEM格式。而Exchange导入需要PFX格式。我们访问https://csr.chinassl.net/convert-ssl.html进行格式转换。

    上传对应的证书文件和私钥。设置一个PFX密码。最好填写一个证书别名。否则导入到Exchange2013中标题一栏会显示空白内容。

    5、把转换成PFX的证书文件放到Exchange服务器的一个共享文件夹中,添加证书需要使用网络路径。打开ECP-服务器-证书-更多-导入Exchange证书。

    填写网络证书的网络路径和上一步设置的PFX证书密码,下一步选择对应的Exchange服务器。

     

    6、可以在证书栏里看到刚刚导入的证书。双击证书,选择服务选项卡,分配证书服务,勾选SMTP、IMAP、POP、IIS

    7、打开OWA检测一下,已经有绿色小锁头了。

     

  • ipmitool启动报错,提示No such file or directory

    当提示:

    [root@localhost ~]# ipmitool sdr
    Could not open device at /dev/ipmi0 or /dev/ipmi/0 or /dev/ipmidev/0: No such file or directory
    Get Device ID command failed
    Unable to open SDR for reading

    需要添加如下:

    [root@localhost ~]# modprobe ipmi_watchdog
    [root@localhost ~]# modprobe ipmi_poweroff
    [root@localhost ~]# modprobe ipmi_devintf
    [root@localhost ~]# modprobe ipmi_si
    [root@localhost ~]# modprobe ipmi_msghandler

    当添加ipmi_si时,提示:

    FATAL: Error inserting ipmi_si (/lib/modules/2.6.9-5.ELsmp/kernel/drivers/char/ipmi/ipmi_si.ko): No   such device

    这是因为机器上没有IPMI设备而出现的报错。

  • 运行时错误429:ActiveX部件不能创建对象的解决办法

    运行时错误429:ActiveX部件不能创建对象的解决办法

    同事使用cpc时出现,运行时错误429:ActiveX部件不能创建对象的错误。

    该问题的产生,可能是卸载其他软件时系统相关的DLL被反注册掉了。

    问题截图:

    QQ截图20160613120736

    解决办法:

    开始→运行→cmd,然后回车。输入for %1 in (%windir%\system32\*.dll) do regsvr32 /s %1

    等系统处理完之后,看看问题是否解决了 :D

  • Exchange2013中断POP3和IMAP4的解决办法

    Exchange2013中断POP3和IMAP4的解决办法

    Exchange服务器意外重启。之后用户发现无法通过POP3和IMAP4收邮件,连接后会提示ssl error5。 但是Exchange模式可以用。

    去服务器上检查,相应的pop3和imap服务均已启动。

    1

    端口是正常的,配置文件也没有变化。

    在服务器上用foxmail测试。地址填写127.0.0.1时却正常。

    【解决办法】

    检查服务器组件: 发现有2个组件处于inactive。

    9

    使用以下命令激活组件

     Set-ServerComponentState -Identity xxmail1 -Component PopProxy  -Requester HealthAPI -State Active

     Set-ServerComponentState -Identity xxmail1 -Component ImapProxy -Requester HealthAPI -State Active

    使用Get-ServerComponentState -Identity ex01 再次查看一下,是否全部为激活状态。

    QQ截图20160505150509

    最后问题解决。


    参考文档:

    https://blogs.technet.microsoft.com/exchange/2013/09/26/server-component-states-in-exchange-2013/

    http://blog.5dmail.net/user1/1/201572216151.html

    http://wenku.baidu.com/link?url=OsXOb5Hu9LHU0YiG-93UOovEcuupTjakAJCYCeslVrkFrDiH4zYpupi-t-QfufFHX0Hj7KNdJ5B4Bs8_Z50D3nLuuUq5Ow31iDWmKSWteo_

  • ubuntu14.04关闭ipv6

    编辑/etc/sysctl.conf

    net.ipv6.conf.all.disable_ipv6 = 1
    net.ipv6.conf.default.disable_ipv6 = 1
    net.ipv6.conf.lo.disable_ipv6 = 1
    net.ipv6.conf.eth0.disable_ipv6 = 1
    

    然后更新一下。

    sudo sysctl -p
    
    接着就可以用 ifconfigip a 命令看看是否已经没有 IPv6 地址了。
  • Openwrt路由器安装KMS服务激活Windows Office

    源地址在这里。

    Emulated KMS Servers on non-Windows platforms

    http://forums.mydigitallife.info/threads/50234-Emulated-KMS-Servers-on-non-Windows-platforms

    它同时提供了一个python版本。不受系统限制。可以安装在任意支持python(2.6 higher)的系统上。

    把它放到Openwrt路由器里,实现自动对局域网内机器进行Windows,Office进行激活。注意,此脚本需要用掉大概12m内存。我用的360路由,显示占用10%内存。 (更多…)

  • Nginx下启用wp-super-cache的mod_rewrite缓存模式及其配置规则

    将以下代码扔到nginx.conf中,然后重启nginx。
              # 如果请求的文件已存在,直接返回
               if (-f $request_filename) {
                   break;
               }
               set $supercache_file '';
               set $supercache_uri $request_uri;
               set $supercache 1;
               set $ihttp_host '';
     
               if ($request_method = POST) {
                   set $supercache 0;
               }
     
               # 仅在访问文章永久链接时使用静态文件,请求中带参数则不使用静态缓存
               set $qs 0;
               if ($query_string) {
                   set $qs 1;
               }
     
               # 不过从 twitter, facebook, feedburner 链接点过来的,总是带参数,这些访问仍然可以使用静态文件
               if ($query_string ~* "^utm_source=([^&]+)&utm_medium([^&]+)&utm_campaign=([^&]+)(&utm_content=([^&]+))?$") {
                   set $qs 0;
                   set $supercache_uri $document_uri;
               }
               #deactivate on high load
               if ($qs = 1) {
                   set $supercache 0;
               }
               # 针对已登录用户(发表过评论),可以不静态化。在访问量高峰时可注释掉
               if ($http_cookie ~* "comment_author_|wordpress|wp-postpass_" ) {
                   set $supercache 0;
               }
     
               # 支持移动设备,访问移动版本的网页缓存
               if ($http_user_agent ~* '(iphone|ipod|aspen|incognito|webmate|android|dream|cupcake|froyo|blackberry9500|blackberry9520|blackberry9530|blackberry9550|blackberry 9800|webos|s8000|bada)') {
                    set $ihttp_host '-mobile';
               }
     
               # 指定静态缓存文件的路径
               if ($supercache = 0) {
                    set $supercache_uri '';
               }
               if ($supercache_uri ~ ^(.+)$) {
                   set $supercache_file /wp-content/cache/supercache/$http_host$1/index${ihttp_host}.html;
               }
     
               # 只有当缓存文件存在时,才进行 rewrite
               if (-f $document_root$supercache_file) {
                   #rewrite ^(.*)$ $supercache_file break;
                   rewrite ^ $supercache_file last;
               }
     
               # 所有其他请求,转给 wordpress 处理
               if (!-e $request_filename) {
                   rewrite . /index.php last;
               }
    
    
    
  • Ubuntu14.04 安装pptp服务

    apt-get install pptpd

    vim /etc/pptpd.conf
    localip 11.22.33.44  #这个就是你当前主机的IP地址
    remoteip 10.0.0.2-100  #这个就是给客户端分配置的IP地址池

    vim /etc/ppp/options
    ms-dns 8.8.8.8
    ms-dns 8.8.4.4
    (更多…)

  • imapsync.exe

    https://fedorahosted.org/released/imapsync/

  • Firefox常用插件

    使用firefox浏览器好多年了,它丰富的插件功能还没有哪个浏览器可以取代。
    常用的几个插件在这里备份一下。以防以后找不到了

    1. Adblock                                         屏蔽广告
    2. Xmarks                                          书签同步
    3. Firegestures                                手势
    4. Greasemonkey                            脚本
    5. Autoproxy                                     自动翻墙  http://mozilla.com.cn/addon/132-autoproxy/
    6. Easy DragToGo+                         拖拽 http://www.firefox.net.cn/read-29894