机器配置
Debian/Ubuntu/CentOS
目前甲骨文有两种框架的机型AMD和ARM
两种框架的网卡名称是不一样的,注意分辨即可
输入以下命令重新获取IP地址:
使用以下命令测试IPv6通信是否正常;
注意:机器重启后IPv6会失效,再次输入以上命令即可重新获取;
机器配置
Debian/Ubuntu/CentOS
目前甲骨文有两种框架的机型AMD和ARM
两种框架的网卡名称是不一样的,注意分辨即可
输入以下命令重新获取IP地址:
# AMD 框架
dhclient -6 ens3
# ARM 框架
dhclient -6 enp0s3使用以下命令测试IPv6通信是否正常;
ping6 ipv6.google.com注意:机器重启后IPv6会失效,再次输入以上命令即可重新获取;
如果您想从macOS上卸载Python 3,可以按照以下步骤进行操作:
打开终端应用程序,它可以在“应用程序”文件夹中的“实用工具”文件夹中找到。
在终端中,输入以下命令以列出所有已安装的Python 3版本:
ls /Library/Frameworks/Python.framework/Versions/
如果您已经安装了多个Python 3版本,您需要决定要卸载哪个版本。
输入以下命令以卸载Python 3:
sudo rm -rf /Library/Frameworks/Python.framework/Versions/<version_number>
其中<version_number>是您要卸载的Python 3版本号。例如,如果您要卸载版本3.8.2,则应该键入:
sudo rm -rf /Library/Frameworks/Python.framework/Versions/3.8.2
在终端中输入以下命令以确认Python 3已成功卸载:
python3 --version
如果终端返回“-bash: python3: command not found”错误信息,则表示Python 3已被成功卸载。
请注意,卸载Python 3可能会影响到其他程序或工具的运行。因此,如果您不确定是否要卸载Python 3,最好备份您的系统或者在卸载之前咨询专业人士。
您可以按照以下步骤在macOS中更新Python 3:
打开终端应用程序,它可以在“应用程序”文件夹中的“实用工具”文件夹中找到。
在终端中,输入以下命令以安装Homebrew包管理器:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Homebrew可以让您更轻松地管理Python 3的安装和更新。
安装Python 3。在终端中输入以下命令:
brew install python
这将安装最新版本的Python 3。
现在,您可以通过输入以下命令来验证Python版本:
python3 --version
如果终端返回最新版本的Python 3,则您已成功更新Python 3。
- sudo -i
- apt update -y
- apt install -y curl
- apt install -y socat
- # Debian/Ubuntu 命令
- apt-get install -y wget && apt-get install sudo
- yum update -y
- yum install -y curl
- yum install -y socat
- #CentOS 命令
- firewall-cmd --state # 查看防火墙状态
- systemctl stop firewalld.service # 停止防火墙
- systemctl disable firewalld.service # 禁止防火墙开机自启
- echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
- echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
- sysctl -p
- sysctl net.ipv4.tcp_available_congestion_control
- lsmod | grep bbr
- wget -qO- bench.sh | bash
- passwd
持续更新
- wget -qO- --no-check-certificate https://raw.githubusercontent.com/oooldking/script/master/superbench.sh | bash
- wget https://raw.githubusercontent.com/cokemine/ServerStatus-Hotaru/master/status.sh #国外机
- wget https://cokemine.coding.net/p/hotarunet/d/ServerStatus-Hotaru/git/raw/master/ status.sh #国内机
- bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
- curl -fLO https://raw.githubusercontent.com/bohanyang/debi/master/debi.sh
- chmod a+rx debi.sh
- sudo ./debi.sh --architecture arm64 --user root --password password
- sudo shutdown -r now
- #密码password
- bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a
- #密码MoeClub.org
- bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 11 -v 64 -a --mirror 'https://mirrors.huaweicloud.com/debian/' -p password
- curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash
- #直接复制粘贴全部到SSH窗口即可
- sudo -i
- systemctl stop tat_agent
- systemctl disable tat_agent
- /usr/local/qcloud/stargate/admin/uninstall.sh
- /usr/local/qcloud/YunJing/uninst.sh
- /usr/local/qcloud/monitor/barad/admin/uninstall.sh
- rm -f /etc/systemd/system/tat_agent.service
- rm -rf /usr/local/qcloud
- rm -rf /usr/local/sa
- rm -rf /usr/local/agenttools
- rm -rf /usr/local/qcloud
- process=(sap100 secu-tcs-agent sgagent64 barad_agent agent agentPlugInD pvdriver )
- for i in ${process[@]}
- do
- for A in $(ps aux | grep $i | grep -v grep | awk '{print $2}')
- do
- kill -9 $A
- done
- done
- wget -O install.sh http://download.moetas.com/install/install-ubuntu_6.0.sh && sudo bash install.sh
- wget -N --no-check-certificate https://raw.githubusercontent.com/ToyoDAdoubiBackup/doubi/master/aria2.sh && chmod +x aria2.sh && bash aria2.sh
- docker run -dit \
- --name QL \
- --hostname QL \
- --restart always \
- -p 5777:5777 \
- -v $PWD/QL/config:/ql/config \
- -v $PWD/QL/log:/ql/log \
- -v $PWD/QL/db:/ql/db \
- -v $PWD/QL/scripts:/ql/scripts \
- -v $PWD/QL/jbot:/ql/jbot \
- whyour/qinglong:latest
- ql repo https://ghproxy.com/https://github.com/shufflewzc/faker3.git "jd_|jx_|gua_|jddj_|getJDCookie" "activity|backUp" "^jd[^_]|USER|function|utils|sendnotify|ZooFaker_Necklace.js|JDJRValidator_|sign_graphics_validate|ql"
使用OpenWRT时,通过LuCI界面更新软件包,只能一个个手动更新,耗时费力。
下面这个方法,可以让你通过SSH批量更新OpenWRT的软件包,一键升级更新。
配置 Plex Media Server SSL、TLS 自定义或第三方签名证书的方法教程 使用前说明 请注意:这是一份设置说明,需要你有 正确的签发的证书 !已经完成安装的 Plex Media Server 服务器 并进行了初始化配置! Plex Media Server ...