1. netstat -ano (查看进程)
2. netstat -aon|findstr "80"(查看80端口)
3. Nginx导入门户工程:
首先访问 :http://localhost
导入门户工程
在nginx中配置虚拟主机:
server{
listen 80;
server_name www.xuecheng.com;
ssi on;
ssi_silent_errors on;
location / {
alias D:/WebStormDoWork/xc-ui-pc-static-portal/;
index index.html;
}
}
找到Nginx根路径访问cmd
输入: nginx.exe -s reload
重启服务
进入C:WindowsSystem32driversetchosts
编辑: 127.0.0.1
www.xuecheng.com
保存退出
4.
获取密钥(公钥和私钥)
keytool -genkeypair -alias xckey -keyalg RSA -keypass xuecheng -keystore xc.keystore -storepass xuechengkeystore
keytool -list -rfc --keystore xc.keystore | openssl x509 -inform pem -pubkey



