修改火绒保护天数教程

修改方法 找到位于注册表HKEY_LOCAL_MACHINE\SOFTWARE\Huorong\Sysdiag\app的InstallTime值,该值为火绒的安装时间。火绒通过安装时间来确定保护天数,修改此值即可修改保护天数。但是,遗憾的是该值无法直接修改,需要使用其他方法。 推测是……

阅读全文

运行 bat 脚本时隐藏 cmd 窗口

在需要运行的 bat 脚本前添加以下内容: @echo off if "%1" == "h" goto begin mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit :begin REM 即可。运行时 cmd 窗口会闪烁一下。……

阅读全文

LAMP 设置反向代理

举例说明,将 1.test.com 和 2.test.com 两个域名通过反向代理指向 localhost:8080 端口 首先在 LAMP 添加任意域名,假设为 0.test.com 修改/usr/local/apache/conf/vhost目录下0.test.com.conf的配置文件,将文件修改为 <VirtualHost *:80> ServerAdmin mail@mail.com ServerName 0.test.com ServerAlias 1.test.com 2.test.com ProxyPreserveHost On ProxyPass / http://localhost:8088/ ProxyPassReverse / http://localhost:8088/ </VirtualHost> 即可。……

阅读全文

修复 LookingGlass 在 LAMP 上无法使用的问题

安装 LookingGlass 后发现 ping 和 mtr 等命令无法使用。发现是 PHP 的配置问题,解决方案如下: 编辑/usr/local/php目录下php.ini文件,找到 disable_functions = exec,system,dl,passthru,chown,shell_exec,popen,proc_open 将proc_open删掉,重启 Apache $ /etc/init.d/httpd restart 即可。……

阅读全文

LAMP IP 绑定域名

在 LAMP 添加的第一个网站根目录下.htaccess文件里添加: RewriteCond %{http_host} ^0.0.0.0 [NC] RewriteRule ^(.*)$ http://www.examples.com/$1 [R=301,L] 注意:0.0.0.0换成服务器的IP;www.examples.com更换为需要绑定的域名。……

阅读全文

如何使用符号链接

使用缘由 Windows 电脑上有多个硬盘分区,但文件服务器又不支持虚拟目录,所以跨硬盘分区分享文件不太好操作。使用符号链接能方便的解决这个问题。 使用方法 以管理员身份运行cmd 假设服务器目录为www,位于c:\www 1、将整个d盘链接过来 $ mklink /d c:\www\disk_d d:\ 2、将d盘的folder目录链接过来 $ mklink /d c:\www\folder d:\folder……

阅读全文

Lighttpd 下 Typecho 伪静态设置

编辑lighttpd.conf文件,添加以下内容 #pseudo static url.rewrite = ( "^/(admin|usr)/(.*)" => "/$1/$2", "^/(.*).html$" => "/index.php/$1.html", "^/archives/(.*)" => "/index.php/archives/$1", "^/category/(.*)" => "/index.php/category/$1", "^/([0-9]+)/([0-9]+)/$" => "/index.php/$1/$2/", "^/tag/(.*)/$" => "/index.php/tag/$1", "^/search/(.*)/$" => "/index.php/search/$1", "^/(.*)page/(.*)" => "/index.php/$1page/$2", "^/(feed.*)" => "/index.php/$1", "^/action/(.*)" => "/index.php/action/$1", "^/(.*)comment" => "/index.php/$1/comment" ) 即可。……

阅读全文

Lighttpd 强制 Https 访问

编辑lighttpd.conf文件,添加以下内容 #force https $SERVER["socket"] == ":80" { $HTTP["host"] =~ "([^:/]+)" { url.redirect = ( "^/(.*)" => "https://%0:443/$1" ) } } 即可。……

阅读全文