分类【Linux运维】下的文章
使用 trash-cli 逃出 rm 命令误删除重要文件的阴影
trash-cli是一个使用 python 开发的软件包,包含 trash-put、restore-trash、trash-list、trash-empty、trash-rm等命令,我们可以通过这写命令,将文件移动到回收站,或者还原删除了的文件。trash-cli的项目地址:https://github.com/andreafrancia/trash-...
https证书申请
获取certbot客户端wget https://dl.eff.org/certbot-autochmod a+x certbot-auto停止nginx/apachesystemctl stop nginx生成证书./certbot-auto certonly --standalone --email 你的邮箱地址 -d 你的域名地址当前网站有多个域...
Navicat for MySQL 连接数据库1130
**创建用户授权:GRANT ALL PRIVILEGES ON . TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;刷新:flush privileges;
让浏览器不再显示 https 页面中的 http 请求警报
--HTTPS改造之后,我们可以在很多页面中看到如下警报:----在页面中加入 meta 头:--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" />