摘要:
ssh 安全 常用入侵检测,防止成为肉鸡 检查history 日志 history # 查看操作日志 检查成功登陆用户 1️⃣ 查看密码登陆成功用户 cat /var/log/secure | grep "Accepted password for" 2️⃣ last 查看登陆信息 last # w 阅读全文
摘要:
server { listen 80; listen [::]:80; server_name test.name; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; # 精确匹配 location = 阅读全文
摘要:
nginx 配置 docker 安装nginx 拉取镜像 docker pull nginx 启动 docker run \ --rm \ --name nginx \ --volume "/nginx/html":/usr/share/nginx/html \ --volume "/nginx/c 阅读全文
摘要:
export PS1="\[\e[32;1m\][\[\e[33;1m\]\u\[\e[31;1m\]@\[\e[33;1m\]\h \[\e[36;1m\]\w\[\e[32;1m\]]\[\e[34;1m\]\$ \[\e[0m\]" 阅读全文
摘要:
安装 删除旧版本 yum remove docker \ docker-client \ docker-client-latest \ docker-common \ docker-latest \ docker-latest-logrotate \ docker-logrotate \ docke 阅读全文
摘要:
生成密钥 # ssh-keygen -t rsa 公钥上传服务器 # ssh-copy-id user@host 编辑本地ssh 配置文件 # vim ~/.ssh/config 配置如下 Host host HostName xxx.xxx.xxx.xxx User root 登陆 ssh hos 阅读全文
摘要:
装上无桌面系统后 想通过wifi 直接连。尝试了多种方式不行。最后连上网线yum install NetworkManager-tui 扫描Wi-Fi 网络 nmcli dev wifi list 查看网卡状态 nmcli device status 连接wifi nmcli device wifi 阅读全文
摘要:
Navigate class | File To open any class in the editor quickly, press and start typing the name of the class. Choose the class from a drop down list th 阅读全文
摘要:
Code completion A special variant of the Code Completion feature invoked by pressing twice allows you to complete XML tag names from namespaces not de 阅读全文
摘要:
promise创建后立即执行 js const p1 = new Promise((resolve,reject) = { setTimeout(() = { reject( ) }, 3000); }) const p2 = new Promise((resolve,reject) = { set 阅读全文