https阿里云续期即ssl证书更新

https阿里云续期

https://help.aliyun.com/document_detail/28544.html?spm=a2c4g.11186623.2.7.26583f1fmhfisC#concept-bty-rfp-ydb

ssl证书更新
https://yundunnext.console.aliyun.com/?spm=a2c4g.11186623.2.10.3f0c7cc4N8XBdt&p=cas#/overview/cn-hangzhou

新买免费ssl证书
https://common-buy.aliyun.com/?spm=5176.2020520163.cas.4.624656a7vVToT0&commodityCode=cas#/buy
ps:选单域名,dv免费省银子

xampp设置允许访问的域名

xampp设置Access-Control-Allow-Origin:
修改apache配置
vim /opt/lampp/etc/httpd.conf

<Directory "/opt/lampp/htdocs">
......
  AllowOverride All
  Header set Access-Control-Allow-Origin *
  #Header set Access-Control-Allow-Origin https://www.google.com,https://www.baidu.com
 ......
</Directory>  

重启xampp
/opt/lampp/lampp restart

Linux 查看端口占用并杀掉

Linux 查看端口占用并杀掉
比如查看80端口具体被那个进程占用

[root@104 ~]# lsof -i :80
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
python  14002 root    3u  IPv4 1505238      0t0  TCP *:http (LISTEN)
python  14002 root    4u  IPv4 1815799      0t0  TCP 104.194.82.232.16clouds.com:http->41.230.3.145:48056 (ESTABLISHED)
[root@104 ~]# kill -9 14002

最后kill-9 pid
kill -9 14002