<system.webServer>
<rewrite>
<rules>
<rule name="栾川登录页" stopProcessing="true">
<match url="v2/guest/$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^e\.djlc\.gov\.cn$" />
</conditions>
<action type="Rewrite" url="v2/subsite/luanchuan/...
分类为 操作系统 的文章:
凭据保存备份有两个部分,一个是远程桌面连接的历史记录,这些记录被保存在注册表下,
HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client
只要将这部分注册表导出备份即可,但是导出这个只有历史记录,并没有凭据信息,也就是保存的登录帐号密码,而这些信息是被存放在另外一个神奇的地方的
第二部分就是导出系统的凭据,Windows把各种域网络登录的凭据都统一管理,在控制面板》用户账户》管理您的凭据,可...
server {
listen 80;
server_name ws.repo;
location / {
proxy_pass http://127.0.0.1:3000/;
proxy_redirect off;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
或
upstream ws_server {
server 127.0.0.1:3000;
}
server {
listen 80;
server_name ws.repo;
location / {
...
更多安装方法见:https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft
步骤:
创建 /etc/yum.repos.d/MariaDB.repo 粘贴以下代码:
# MariaDB 10.1 CentOS repository list - created 2016-09-02 01:53 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-Ma...
vsftpd在版本2.0.1开始,就支持ssl
查看 vsftpd 版本: vsftpd -v
步骤:
mkdir /etc/vsftpd/sslkey
cd /etc/vsftpd/sslkey
openssl req -new -x509 -nodes -out vsftpd.pem -keyout vsftpd.pem -days 3650
vi /etc/vsftpd/vsftpd.conf
# 添加:
ssl_enable=YES
ssl_tlsv1=YES
ssl_ciphers=HIGH
force_local_logins_ssl=NO
force_local_data_ssl=NO
allow_anon_ssl=YES
rsa_cert_file=/etc/vsftpd/sslkey/vsft...
CentOS7 的防火墙由 iptables 换成了 firewalld,
查看 firewalld 状态:systemctl status firewalld.service
关闭 firewalld:systemctl stop firewalld.service
配置文件:/etc/firewalld
允许 nginx:
systemctl start firewalld.service
firewall-cmd --add-service=http --permanent
firewall-cmd --add-service=https --permanent # http 里没有包含 https
firewall-cmd --add-port=8080/tcp --permanent # 追加一个...
问题描述:
之前文本文档都是用X盘里的 notepad2.exe 打开,后来因为X盘没了所以将 notepad2.exe 放到了M盘里,在更改 .txt、.css、.js、.php 文件的打开方式时,windows默认显示的一直是 X盘里的 notepad2.exe 通过“浏览”按钮选择M盘里的 notepad2.exe 无效,不能替换“选择默认程序”中原来的notepad.exe,也不能添加第二个 notepad2.exe
解决办法:
打开注册表,删除项 [HKEY_CLASSES_ROOT\Applications\Notepad2.exe] 及其下...
升级wdcp到最新版本
下载最新版的源码:http://dl.wdlinux.cn:5180/lanmp_laster.tar.gz
从下载的源码中解压出 htttpd 的源码,位置: lanmp_laster.tar.gz/lanmp/httpd-2.2.24.tar.gz
解压后进入 httpd 源码的 /modules/proxy/ 目录中执行以下命令:
/www/wdlinux/httpd-2.2.24/bin/apxs -i -c -a mod_proxy.c proxy_util.c
/www/wdlinux/httpd-2.2.24/bin/apxs -i -c -a mod_proxy_http.c
/www/wdlinux/httpd-2.2.24/bin/...
本文为修改 Pure-FTP 服务器的欢迎信息的方法,建议修改为 Server-U 的欢迎信息(SERV-U V6.3版)以迷惑调皮捣蛋的娃们。
修改后:
状态: 正在解析 svr1.upall.cn 的地址
状态: 正在连接 110.110.110.110:21...
状态: 连接建立,等待欢迎消息...
响应: 220-欢迎登录我的FTP。 <-- 注意看这里,本文改的是这个地方
命令: USER anonymous
响应: 331 Please specify the password.
命令: PASS ****************
响应: ...
介绍:
GoAccess 是一个日志分析工具,可定制日志格式,官网:http://goaccess.io/faq
本文介绍用 GoAccess 来统计 wdlinux 的 nginx 的日志,效果如下:
HTML版:
终端版:
安装:
yum -y install goaccess
配置:
修改设置文件,告知 wdlinux 的 nginx 的日志格式
vi /etc/goaccess.conf 在开头的相应位置添加以下设置:
time-format %H:%M:%S
date-format %d/%b/%Y
log-format %h %^ %^ %^[%d:%t %^] "%r&qu...
vnStat是一个Linux下的网络流量监控软件,它可以记录指定网卡每日的传输流量日志。需要注意的是它并非基于网络包的过滤而是分析 /proc, vnStat不需要root权限。
vnstat 命令用法
[root@upall ~]# vnstat --help
vnStat 1.14 by Teemu Toivola <tst at iki dot fi>
-q, --query query database
-h, --hours show hours
-d, --days show days
...
startup_message off
deflogin on
autodetach on
vbell off
vbell_msg " Wuff----Wuff!!"
scrollback 11024
defscrollback 11024
bind ^k
bind ^\
bind \\ quit
bind K kill
bind I login on
bind O login off
bind } history
termcapinfo vt100 dl=5\E[M
hardstatus on
termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007
hardstatus string "...