Loading... ## DD 重装系统 ### 甲骨文 ```bash # Linux # 初始账号root 密码MoeClub.org bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a -firmware # Windows WIN7能KMS激活 wget --no-check-certificate -qO InstallNET.sh 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh' && bash InstallNET.sh -dd 'http://d.nat.ee/win/lite/win7-ent-sp1-x64-cn/win7-ent-sp1-x64-cn-efi.vhd.gz' ``` ### 三毛机 ```bash wget -N --no-check-certificate https://raw.githubusercontent.com/veip007/dd/master/dd-gd.sh && chmod +x dd-gd.sh && ./dd-gd.sh ``` ### gcore ```bash wget git.io/auto.sh bash auto.sh -d 9 -v 64 -a -p 密码 ``` ### 轻量服务器 ```bash bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 10 -v 64 -a ``` ### 带 WebUI 可查看DD系统进度 ```bash https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh ``` ### 腾讯云香港轻量DD ```bash # 自行查看帖子内容 https://sunpma.com/137.html ``` ### 通用机可使用 ```bash https://ghproxy.com/https://raw.githubusercontent.com/flyqie/dd-shell/master/Core_Install.sh # 默认密码 cxthhhhh.com # 全球CDN加速 wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://www.cxthhhhh.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh && bash ~/Network-Reinstall-System-Modify.sh # 中国大陆加速 wget --no-check-certificate -qO ~/Network-Reinstall-System-Modify.sh 'https://caoxiaotian.com/CXT-Library/Network-Reinstall-System-Modify/Network-Reinstall-System-Modify.sh' && chmod a+x ~/Network-Reinstall-System-Modify.sh && bash ~/Network-Reinstall-System-Modify.sh ``` --- ## Linux面板 ### mdserver-web面板 ```bash # 初始安装 curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/install.sh | bash # 直接更新 curl -fsSL https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/update.sh | bash # 卸载脚本 wget -O uninstall.sh https://cdn.jsdelivr.net/gh/midoks/mdserver-web@latest/scripts/uninstall.sh && bash uninstall.sh # 备用地址 # 初始安装 curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/install.sh | bash # 直接更新 curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/update.sh | bash # 卸载脚本 wget -O uninstall.sh https://raw.githubusercontent.com/midoks/mdserver-web/master/scripts/uninstall.sh && bash uninstall.sh # 通用软件安装[命令行安装] # 需已经安装mdserver-web curl -fsSL https://raw.githubusercontent.com/midoks/mdserver-web/dev/scripts/quick/app.sh | bash ``` ### 宝塔面板 ```bash ###### 新手教程 - 推荐使用 ###### #安装更新运行环境(Debian系统) apt update -y && apt dist-upgrade -y && apt install -y curl && apt install -y socat apt-get install -y xz-utils openssl gawk file wget screen && screen -S os # 更改SSH终端中文语言 wget -N --no-check-certificate https://raw.githubusercontent.com/FunctionClub/LocaleCN/master/LocaleCN.sh && bash LocaleCN.sh # 更改服务器时区为上海 timedatectl set-timezone 'Asia/Shanghai' #首先宝塔面板7.7原版 curl -sSO https://raw.luolix.top/zhucaidan/btpanel-v7.7.0/main/install/install_panel.sh && bash install_panel.sh #然后执行一键开心脚本 curl -sSO https://raw.luolix.top/ztkink/bthappy/main/one_key_happy.sh && bash one_key_happy.sh #最后执行下一键优化补丁 ~~wget -O optimize.sh http://f.cccyun.cc/bt/optimize.sh && bash optimize.sh~~ wget -O optimize.sh https://raw.luolix.top/luolixman/tool/main/bt/bt_optimize.sh && bash optimize.sh # 备用 wget -O optimize.sh https://raw.githubusercontent.com/122al/bt/adc3b7216c986489a8922cfa81540345d0f74a61/bt_optimize.sh && bash optimize.sh ## 工具 宝塔linux工具箱优化脚本 # 一键修改宝塔面板模板、去除强制登陆、一键修复面板、一键更换yum源、清除系统垃圾缓存、系统优化等 https://gitee.com/gacjie/btpanel_tools wget -O btpanel_tools.sh https://download.btpanel.cm/tools/btpanel_tools.sh && bash btpanel_tools.sh ------ 不推荐使用下面配置 ------ # 宝塔 wget -O install.sh <http://download.bt.cn/install/install-ubuntu_6.0.sh> && bash install.sh # aapanel wget -O install.sh <http://www.aapanel.com/script/install-ubuntu_6.0_en.sh> && bash install.sh //宝塔一键升级开心版本 专业版:curl http://download.yu.al/install/update6.sh|bash 企业版:curl http://download.yu.al/ltd/install/update6.sh|bash ``` ### aapanel(英文版宝塔) ```bash # 宝塔去实名认证 rm -rf /www/server/panel/data/bind.pl # 宝塔&aapanel破解 #编辑 /www/server/panel/class/panelplugin.py #找到 softList['list'] = tmpList 这行代码 #在下面添加以下代码,注意缩进 softList['pro'] = 1 for soft in softList['list']: soft['endtime'] = 0 # 编辑完毕后保存重启面板即可 ``` ## 常用脚本 ### 一键集成脚本 ```bash # 多功能集成一键脚本 # 开源地址 # https://github.com/Netflixxp/jcnf-box wget -O jcnfbox.sh https://raw.githubusercontent.com/Netflixxp/jcnf-box/main/jcnfbox.sh && chmod +x jcnfbox.sh && clear && ./jcnfbox.sh # 开源地址 # https://github.com/jinwyp/one_click_script bash <(curl -Lso- https://git.io/oneclick) # 自用 bash <(curl -Lso- https://goo.gs/ixt86) bash <(curl -Lso- https://raw.luolix.top/luolixman/tool/main/install.sh) ``` ### X-UI一键脚本 ```bash # x-ui一键 # 默认账号密码 admin # 1、第一步 apt update -y # Debian/Ubuntu 命令 apt install -y curl #Debian/Ubuntu 命令 apt install -y socat #Debian/Ubuntu 命令 # 2、第二步 bash <(curl -Ls https://raw.githubusercontent.com/FranzKafkaYu/x-ui/master/install.sh) ~~bash <(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)~~ ``` ### 搭建Telegram的MTProto代理 ```bash # 需要提前在服务器安装docker # CentOS/AliyunOS/AMI系统 yum install -y curl ~~bash <(curl -sL https://s.hijk.art/mtproto.sh)~~ # Ubuntu/Debian系统 apt install -y curl ~~bash <(curl -sL https://s.hijk.art/mtproto.sh)~~ bash <(curl -sL https://storage.googleapis.com/tiziblog/mt_setup.sh) ``` ### 一键开启BBR ```bash 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 ``` ### superbench ```bash wget -qO- git.io/superbench.sh | bash ``` ### [Bench.sh](http://bench.sh/) ```bash wget -qO- bench.sh | bash ``` ### 三网测速 ```bash bash <(curl -Lso- http://yun.789888.xyz/speedtest.sh) ``` ### 流媒体 ```bash # 第一个 bash <(curl -L -s https://raw.githubusercontent.com/lmc999/RegionRestrictionCheck/main/check.sh) # 第二个 bash <(curl -sSL "https://github.com/CoiaPrant/MediaUnlock_Test/raw/main/check.sh") ``` ### 回程 ```bash # 第一个 wget https://raw.githubusercontent.com/nanqinlang-script/testrace/master/testrace.sh bash testrace.sh # 第二个 wget -qO- git.io/besttrace | bash ``` ### Linux安装Python3一键脚本 ```bash # 1、检查下系统是否有Python3 python3 -V # 安装Python3 #CentOS系统 wget https://www.moerats.com/usr/shell/Python3/CentOS_Python3.6.sh && sh CentOS_Python3.6.sh #Debian系统 wget https://www.moerats.com/usr/shell/Python3/Debian_Python3.6.sh && sh Debian_Python3.6.sh # 如果想修改系统默认的Python版本的话,还需要创建软链接,可使用命令 cd /usr/bin mv python python.backup ln -s /usr/local/bin/python3 /usr/bin/python # 然后重启运行python -V查看即可 ``` ### Linux安装Java命令 ```bash # ARM # 从官网下载,amd64服务器替换下载地址 # amd64 服务器 https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz # jdk wget https://download.oracle.com/java/18/latest/jdk-18_linux-aarch64_bin.tar.gz # tomcat wget https://dlcdn.apache.org/tomcat/tomcat-10/v10.0.22/bin/apache-tomcat-10.0.22.tar.gz # 创建文件夹 mkdir /usr/java cp /root/jdk-18_linux-aarch64_bin.tar.gz /usr/java/ tar xzf jdk-18_linux-aarch64_bin.tar.gz -C /usr/java # 编辑环境变量文件 vim /etc/profile export JAVA_HOME=/usr/java/jdk1.8.0_271 export CATALINA_HOME=/usr/java/apache-tomcat-10.0.22 // tomcat export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib export PATH=$JAVA_HOME/bin:$PATH # :wq 保存并执行下面语句 重新读取环境变量 source /etc/profile # 继续配置tomcat cd /usr/java/apache-tomcat-10.0.22/conf # 找到 server.xml文件 找到Connector配置8080端口的位置,在节点末尾添加 URIEncoding="UTF-8" # :wq 保存退出 ``` ### Install Nodejs ```bash # Node.js v16.x: # Debian和Ubuntu # 非root用户 curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs # root用户 curl -fsSL https://deb.nodesource.com/setup_16.x | bash - apt-get install -y nodejs # Centos # root用户 curl -fsSL https://rpm.nodesource.com/setup_16.x | bash - yum install -y nodejs # 非root用户 curl -fsSL https://rpm.nodesource.com/setup_16.x | sudo bash - sudo yum install -y nodejs ``` ## Docker ### 一键安装docker ```bash curl -sSL https://get.daocloud.io/docker | sh # 官方 curl -sSL https://get.docker.com/ | sh # 阿里云 curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun ``` ### 卸载docker ```bash sudo apt-get remove docker docker-engine rm -fr /var/lib/docker ``` ### 安装docker-compose ```bash curl -L https://get.daocloud.io/docker/compose/releases/download/v2.1.1/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose sudo curl -L https://git.luolix.top/docker/compose/releases/download/1.22.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose ``` ### docker可视化面板 ```docker docker run --restart always -p 8089:8081 -e TZ="Asia/Shanghai" -d -v /var/run/docker.sock:/var/run/docker.sock -v /etc/docker/:/etc/docker/ wangbinxingkong/fast:latest ``` ### Arm mysql8.0 ```docker docker run -p 33066:3306 -it -d --name mysql --net=host \ -m 500m -v /root/mysql/data:/var/lib/mysql \ -v /root/mysql/config:/etc/mysql/conf.d \ -e MYSQL_ROOT_PASSWORD=weilev \ -e TZ=Asia/Shanghai mysql:8.0 \ --lower_case_table_names=1 ``` ### Mysql8.0 ```docekr docker run -p 3306:3306 --name mysql \ --restart always \ -v /usr/local/docker/mysql/mysql-files:/var/lib/mysql-files \ -v /usr/local/docker/mysql/conf:/etc/mysql \ -v /usr/local/docker/mysql/logs:/var/log/mysql \ -v /usr/local/docker/mysql/data:/var/lib/mysql \ -e MYSQL_ROOT_PASSWORD=123456 \ -d mysql:8.0.23 ``` ### Redis ```docekr docker run -d --name redis \ -p 63790:6379 \ --restart=always \ redis:latest ``` ### 青龙面板 ```docekr docker run -dit \ -v $PWD/wp/config:/ql/config \ -v $PWD/wp/log:/ql/log \ -v $PWD/wp/db:/ql/db \ -v $PWD/wp/scripts:/ql/scripts \ -p 5700:5700 \ --name wp \ --hostname qinglong \ --restart always \ whyour/qinglong:latest ``` ### Lobe ```docekr docker run -d -p 3210:3210 --name lobe-chat \ -e OPENAI_API_KEY=sk-xxxxxxxxxxxxx \ -e OPENAI_PROXY_URL=https://domain.com/v1 \ -e ACCESS_CODE=password \ -e CUSTOM_MODELS=+gpt-4-0125-preview,+gpt-4-1106-preview,+gpt-4,+gpt-4-all,+gpt-4-gizmo-*,+gpt-4-0314,+gpt-3.5-turbo-0125,+gemini-pro,+SparkDesk,+qwen-max,+qwen-turbo,+claude-3-opus-20240229,+kimi,+glm4 \ --name lobe-chat \ --restart=always \ lobehub/lobe-chat ``` ### Chatgpt-next-web ```docekr docker run -d -p 3100:3000 \ -e OPENAI_API_KEY=sk-xxxxxxxxx \ -e CODE=passwd \ -e BASE_URL=https://domain.com \ --restart=always \ yidadaa/chatgpt-next-web ``` ### ChatAPI ```bash docker run --name chat-api -d --restart always -p 3600:3000 -e TZ=Asia/Shanghai ai365/chat-api:latest docker run --name one-api -d --restart always -p 3300:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/one-api:/data justsong/one-api:latest docker run --name new-api -d --restart always -p 6900:3000 -e TZ=Asia/Shanghai -v /home/ubuntu/data/new-api:/data calciumion/new-api:latest ``` ### PageAI ```docekr docker run -d -p 7410:3000 --name paperai \ -e NEXT_PUBLIC_AI_URL=https://domain.com\ -e NEXT_PUBLIC_OPENAI_API_KEY=sk-xxxxxxxx \ --restart=always \ 14790897/paperai:latest ``` ### Deeplx-pro ```docekr docker run -d --name deeplx-pro-01 -p 6110:9000 -e DL_SESSION="a6ff1e40-xxxx-xxxx-xxxx-ca4e8f998c78" xiaoxiaofeihh/deeplx-pro:latest ``` ### S-UI ```bash # docker安装 mkdir s-ui && cd s-ui docker run -itd -p 2095:2095 -p 443:443 -p 80:80 -v $PWD/db/:/usr/local/s-ui/db/ -v $PWD/cert/:/root/cert/ --name s-ui --restart=unless-stopped alireza7/s-ui:latest #sh安装 bash <(curl -Ls https://raw.githubusercontent.com/alireza0/s-ui/master/install.sh) ``` 最后修改:2024 年 04 月 18 日 © 允许规范转载 赞 如果觉得我的文章对你有用,请随意赞赏