Posts

Showing posts with the label centos7

centos7 vps安装Xway

Image
  安装 Xray 可视化面板 更新系统 apt update -y #Debian/Ubuntu命令 apt install -y curl #Debian/Ubuntu命令 yum update -y #CentOS命令 yum install -y curl #CentOS命令 安装BBR加速 CentOS 8 / Debian ≥ 9 开启自带 BBR 加速 ,复制全部粘贴 echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf sysctl -p lsmod | grep bbr 安装面板 方法一:一键安装或升级脚本 bash <(curl -Ls https://blog.sprov.xyz/v2-ui.sh) 面板常用命令 v2-ui # 显示管理菜单 (功能更多) v2-ui start # 启动 v2-ui 面板 v2-ui stop # 停止 v2-ui 面板 v2-ui restart # 重启 v2-ui 面板 v2-ui status # 查看 v2-ui 状态 v2-ui enable # 设置 v2-ui 开机自启 v2-ui disable # 取消 v2-ui 开机自启 v2-ui log # 查看 v2-ui 日志 v2-ui update # 更新 v2-ui 面板 v2-ui install # 安装 v2-ui 面板 v2-ui uninstall # 卸载 v2-ui 面板 申请证书 一、DNS 验证申请证书 获取 Cloudflare API 令牌 在域名管理首页(右下角)找到如下图,获取 API 密钥: 安装 ACME curl https://get.acme.sh | sh 设置 Cloudfla...

oracle cloud root账户 ssh登录

Image
系统为centos7 问题: ssh root登录oracle cloud, 提示Please login as the user “opc” rather than the user “root”. 解决: 1. 通过opc账户ssh登录oracle cloud 2. 登录root账户 sudo -i  3. 修改root账户登录密码 passwd root  4. 删除 ~/.ssh/authorized_keys 里面的代码 5. 编辑/etc/ssh/sshd_config文件 PermitRootLogin yes PubkeyAuthentication yes 6. 重启ssh服务 service sshd restart 7. 通过root账户ssh登录成功