2012年9月24日星期一

添加Notepad++到鼠标右键


添加系统右键菜单,就需要手动修改注册表了。

Windows Registry Editor Version 5.00 
[HKEY_CLASSES_ROOT\*\Shell\NotePad++] 
[HKEY_CLASSES_ROOT\*\Shell\NotePad++\Command] @="\"D:\\Program Files (x86)\\npp\\notepad++.exe\" \"%1\""

ssh公钥连接


产生公钥和私钥(在A上操作)
#cd ~/.ssh
#ssh-keygen -t rsa 然后一路回车,如果原来已经有公钥需要输入y来覆盖
copy公钥到B(在A上操作)
# scp -p ~/.ssh/id_rsa.pub sherry@B:~/.ssh/authorized_keys
私钥文件名:id_rsa
公钥文件名:id_rsa.pub

2012年9月3日星期一

WAMP环境配置https


cd /d D:\wamp\bin\apache\Apache2.2.11\bin
cp APACHE_CONF/openssl.cnf .
openssl
OpenSSL> req -new -x509 -days 999 -nodes -out apache.pem -keyout apache.pem -config openssl.cnf
Loading 'screen' into random state - done
Generating a 1024 bit RSA private key
....++++++
...++++++
writing new private key to 'apache.pem'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:CN
State or Province Name (full name) [Some-State]:shanghai
Locality Name (eg, city) []:shanghai
Organization Name (eg, company) [Internet Widgits Pty Ltd]:op
Organizational Unit Name (eg, section) []:op
Common Name (eg, YOUR name) []:Shore
Email Address []:sh@g.com
在httpd.conf中添加两行:

LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
修改httpd-ssl.conf:

修改其中一行(路径相应改变):

SSLCertificateFile "D:/wamp/bin/apache/Apache2.2.11/bin/apache.pem"
重启Apache,OKAY!

httpswamp

上海松善实业有限公司

    上海松善实业有限公司是一家集多品牌销售于一体的电线电缆骨干企业,公司成立于2016年。 公司拥有国内各大品牌:起帆、远东、上上、江南、胜华等。     主要产品有:高低压电力电缆、橡套电缆、控制电缆、架空绝缘电缆、塑胶电缆、电子计算机电缆、通讯电缆、...