Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost are already in use. The server may already be running in ano...
一些常用的日志和其他操作
# 查看nginx日志 sudo tail -f /var/log/nginx/error.log # 查看服务的系统日志 journalctl -xeu gogs.service # 验证nginx配置文件正确性 sudo nginx -t ...
k8s的权限系统
k8s有一套基于RBAC的权限系统,这里的RBAC和Security里的那个RBAC是一个模型,一切行为是基于角色。角色、权限、用户、分配。Role:一组权限的集合,Role可以包含列出Pod权限及列出Deployment权限,Role用于给某个NameSpace中的资源进...
http响应头安全策略 涉及xxs和nginx
以下为nginx配置,添加到config的http块中add_header Content-Security-Policy "default-src 'self' xxx.xxx.com(允许的地址)add_header X-Content-Type-Option...