category
NotionNext
date
Jul 14, 2022
icon
Origin
bb.ci
password
slug
1657793193164
status
Published
summary
Notion Blog
tags
NotionNext
type
Post
Notion Blog

docker 管理工具

docker run -d -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock --restart=always --name portainer portainer/portainer-ce

甲骨文 ARM DD 系统

bash <(wget --no-check-certificate -qO- 'https://raw.githubusercontent.com/MoeClub/Note/master/InstallNET.sh') -d 10 -v 64 -p "您的密码" -port "22"
甲骨文 amd DDwin7
wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'https://res.you2php.com/win7-oracle.img.gz'

八合一脚本

更新系统
yum update -y #CentOS系统命令 apt update -y #Debian系统命令
安装 wget
yum install -y wget #CentOS系统命令 apt install -y wget #Debian系统命令
脚本
wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

流媒体解锁测试

bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh)

带验证的 speed test 测速 port:9999

docker run -d -e TZ=Asia/Shanghai -e ENABLE_CAPTCHA=1 -e INFLIGHT_TEST_LIMIT=1 --network host --restart=always -it mengskysama/speedtest-go:v1.17-alpha-alpine3.15

不带测速的GB5

curl -sL yabs.sh | bash -s -- -i

docker 安装

国内源
curl -sSL https://get.daocloud.io/docker | sh
国外源
curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun

开放所有端口

#停止firewall systemctl stop firewalld.service #禁止firewall开机启动 systemctl disable firewalld.service #关闭iptables service iptables stop #去掉iptables开机启动 chkconfig iptables off #开放所有端口 sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT sudo iptables -F #Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它 apt-get purge netfilter-persistent reboot #强制删除 rm -rf /etc/iptables && reboot

甲骨文改 root 登陆 也适用 AWS

sudo -i echo root:要修改的密码 |sudo chpasswd root sudo sed -i 's/^.*PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config; sudo sed -i 's/^.*PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config; sudo service sshd restart

***iptables 端口转发****

安装
wget --no-check-certificate -qO natcfg.sh https://www.arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh
卸载
wget --no-check-certificate -qO uninstall.sh https://raw.githubusercontent.com/arloor/iptablesUtils/master/dnat-uninstall.sh && bash uninstall.sh

vps 更换为国内源

bash <(curl -sSL https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh)

***screen 后台守护****

安装
yum install screen
查看
screen -ls
新建一个 david 会话
screen -S david
运行
screen bash xxxxx
重新连接会话
screen -r 12865
本文由简悦 SimpRead 转码
PagerMaidgiscus

  • Waline
  • Giscus
  • Cusdis
  • Utterance