导航:Home » admin
此为作者:" admin " 的所有文章

ssh 和 scp 连接非 22 端口服务器的方法

作者:admin | 时间:September 2, 2015 | 分类:linux | 评论:0 ℃
ssh 连接非 22 端口服务器的方法:
ssh -p 29966 [email protected]远程 ssh 服务器的 ip #小写 p
scp 远程拷贝非 22 端口的服务器文件的方法:
上传文件到服务器
scp -P 29966 /Users/ianMac/Desktop/progit.zh.pdf [email protected]远程 ssh 服务器的 ip:/home/wwwroot #大写 P
下载文件到本地
scp -P 29966 [email protected]远程 ssh 服务器的 ip:/home/wwwroot/index.html /Users/ianMac/Desktop/
上传本地目录中的所有文件到服务器上
scp -P 29966 -r /Users/ianMac/Desktop/.* [email protected]远程 ssh 服务器的 ip:/home/wwwroot/ #-r 是将目录下的目录递归拷贝。".*" 是将隐藏文件也拷贝过去。
下载服务器上目录中的所有文件到本地目录中

scp -P 29966 -r [email protected]远程 ssh 服务器的 ip:/home/wwwroot/.* /Users/ianMac/Desktop/

原文地址:http://www.ianisme.com/it/1611.html


KMS 激活 win10

作者:admin | 时间:August 19, 2015 | 分类: | 评论:0 ℃
Win10 家庭版:
Windows 10 Home – TX9XD-98N7V-6WMQ6-BX7FG-H8Q99
Windows 10 Home N – 3KHY7-WNT83-DGQKR-F7HPR-844BM
Windows 10 Home Single Language – 7HNRX-D7KGG-3K4RQ-4WPJ4-YTDFH
Windows 10 Home Country Specific – PVMJN-6DFY6-9CCP6-7BKTT-D3WVR

Win10 专业版:
Windows 10 Professional – W269N-WFGWX-YVC9B-4J6C9-T83GX
Windows 10 Professional N – MH37W-N47XK-V7XM9-C7227-GCQG9

Win10 教育版:
Windows 10 Education – NW6C2-QMPVW-D7KKK-3GKT6-VCFB2
Windows 10 Education N – 2WH4N-8QGBV-H22JP-CT43Q-MDWWJ


Win10 企业版:
Windows 10 Enterprise – NPPR9-FWDCX-D2C8J-H872K-2YT43
Windows 10 Enterprise N – DPH2V-TTNVB-4X9Q3-TJR4H-KHJW4
Windows 10 Enterprise 2015 LTSB – WNMTR-4C88C-JK8YV-HQ7T2-76DF9
Windows 10 Enterprise 2015 LTSB N – 2F77B-TNFGY-69QQF-B8YKP-D69TJ

Win10 安装完毕后,首先以管理员身份打开 CMD 命令行窗口。
专业版用户请依次输入:
slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX
slmgr /skms kms.xspace.in
slmgr /ato

企业版用户请依次输入:
slmgr /ipk NPPR9-FWDCX-D2C8J-H872K-2YT43
slmgr /skms kms.xspace.in
slmgr /ato

激活office 2013 2016 VOL版

作者:admin | 时间:August 19, 2015 | 分类: | 评论:0 ℃

Office 2013:

(VLK)Pro plus: YC7DK-G2NP3-2QQC3-J6H88-GVGXT

(VLK)Project Professional: FN8TT-7WMH6-2D4X9-M337T-2342K

(VLK)Visio Professional: C2FG9-N6J68-H8BTJ-BW3QX-RM3B3


Office 2016:
Office Professional Plus 2016 - XQNVK-8JYDB-WJ9W3-YJ8YR-WFG99(专业版 Plus)
Office Standard 2016 - JNRGM-WHDWX-FJJG3-K47QV-DRTFM(标准版)
Project Professional 2016 - YG9NW-3K39V-2T3HJ-93F3Q-G83KT
Project Standard 2016 - GNFHQ-F6YQM-KQDGJ-327XX-KQBVC
Visio Professional 2016 - PD3PC-RHNGV-FXJ29-8JK7D-RJRJK
Visio Standard 2016 - 7WHWN-4T7MP-G96JF-G33KR-W8GF4
Access 2016 - GNH9Y-D2J4T-FJHGG-QRVH7-QPFDW
Excel 2016 - 9C2PK-NWTVB-JMPW8-BFT28-7FTBF
OneNote 2016 - DR92N-9HTF2-97XKM-XW2WJ-XW3J6
Outlook 2016 - R69KK-NTPKF-7M3Q4-QYBHW-6MT9B
PowerPoint 2016 - J7MQP-HNJ4Y-WJ7YM-PFYGF-BY6C6
Publisher 2016 - F47MM-N3XJP-TQXJ9-BP99D-8K837
Skype for Business 2016 - 869NQ-FJ69K-466HW-QYCP2-DDBV6
Word 2016 - WXY84-JN2Q9-RBCCQ-3Q3J3-3PFJ6


1、进入目录

cd %ProgramFiles%Microsoft OfficeOffice15

2、查看key情况

cscript ospp.vbs /dstatus

3、删除原来的key

cscript ospp.vbs /unpkey:XXXXX

4、装入新KEY

cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX

5、设置kms服务器
cscript ospp.vbs /sethst:hzq.im

6、激活
cscript ospp.vbs /act

7、查看状态
cscript ospp.vbs /dstatus

8、要不要移除kms服务器?
cscript ospp.vbs /remhst


部分容易被污染的域名

作者:admin | 时间:June 12, 2015 | 分类:host,linux,web | 评论:0 ℃
#Google and Youtube
server=/.google.com/208.67.222.222#443
server=/.google.com.hk/208.67.222.222#443
server=/.gstatic.com/208.67.222.222#443
server=/.ggpht.com/208.67.222.222#443
server=/.googleusercontent.com/208.67.222.222#443
server=/.appspot.com/208.67.222.222#443
server=/.googlecode.com/208.67.222.222#443
server=/.googleapis.com/208.67.222.222#443
server=/.gmail.com/208.67.222.222#443
server=/.google-analytics.com/208.67.222.222#443
server=/.youtube.com/208.67.222.222#443
server=/.googlevideo.com/208.67.222.222#443
server=/.youtube-nocookie.com/208.67.222.222#443
server=/.ytimg.com/208.67.222.222#443
server=/.blogspot.com/208.67.222.222#443
server=/.blogger.com/208.67.222.222#443

#FaceBook
server=/.facebook.com/208.67.222.222#443
server=/.thefacebook.com/208.67.222.222#443
server=/.facebook.net/208.67.222.222#443
server=/.fbcdn.net/208.67.222.222#443
server=/.akamaihd.net/208.67.222.222#443

#Twitter
server=/.twitter.com/208.67.222.222#443
server=/.t.co/208.67.222.222#443
server=/.bitly.com/208.67.222.222#443
server=/.twimg.com/208.67.222.222#443
server=/.tinypic.com/208.67.222.222#443
server=/.yfrog.com/208.67.222.222#443

#Dropbox
server=/.dropbox.com/208.67.222.222#443

Debian7采用dotdeb安装LNMP,PHP5.6

作者:admin | 时间:May 24, 2015 | 分类:host,linux | 评论:0 ℃

1、添加以前源地址到/etc/apt/sources.list

deb http://packages.dotdeb.org wheezy all 
deb-src http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php56 all
deb-src http://packages.dotdeb.org wheezy-php56 all
2、导入dotdeb源的钥匙

wget http://www.dotdeb.org/dotdeb.gpg && cat dotdeb.gpg | apt-key add -
3、安装LNMP

apt-get update && apt-get install nginx mysql-server php5-fpm php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-common php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl php5-memcached memcached
4、选项

a、安装phpmyadmin
b、安装php探针——http://www.yahei.net/tz/tz.zip
c、修改/etc/nginx/sites-available/default,打开PHP解析功能

升级LNMP,导致PHP页面无法解析

作者:admin | 时间:May 23, 2015 | 分类:host,router | 评论:0 ℃

今天看到新闻,PHP 语言爆出 multipart/form-data 远程 DOS 漏洞。

所有就升级 PHP 套件。

因为人太懒了,技术菜鸟,所以采用了apt-get upgrade 的方法,

升级后,好像有看到提示 Nginx 配置替换的提示,选择了NO,

之后为题就来了,所以动态页面都变成了空白,动态页面没有问题。

所有问题出在 PHP 的解析上,尝试过几种方法,终于找到了问题所在:

原来新版 Nginx 的配置在 PHP 的解析上有了少许变化。

旧版是这个样子:

location ~ \.php${
	fastcgi_pass unix:/tmp/php5-fpm.sock;
	fastcgi_index index.php;
	include fastcgi_params;
}

新版是这个样子:

location ~ \.php${
	fastcgi_pass unix:/tmp/php5-fpm.sock;
	fastcgi_index index.php;
	include fastcgi.conf;
}

参考:http://www.jjhr.net/2015/01/debian-7-nginx-1-2-to-1-6-upgrade-process-and-the-page-blank-solution/

劫持dns,强迫使用路由器dns解析

作者:admin | 时间:February 27, 2015 | 分类: | 评论:0 ℃
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p udp --dport 53 -j DNAT --to 192.168.1.1
iptables -t nat -A PREROUTING -s 192.168.1.0/24 -p tcp --dport 53 -j DNAT --to 192.168.1.1

Debian 7 升级内核

作者:admin | 时间:February 25, 2015 | 分类:linux | 评论:0 ℃
Copyright © 2012-2018 hzqim Powered by Typecho)))