Ubuntu26.04 部署

备份源

sudo cp /etc/apt/sources.list.d/ubuntu.sources /etc/apt/sources.list.d/ubuntu.sources.bak

sudo sed -i

's|http://archive.ubuntu.com/ubuntu\|https://mirrors.aliyun.com/ubuntu\|g;

s|http://security.ubuntu.com/ubuntu\|https://mirrors.aliyun.com/ubuntu\|g'

/etc/apt/sources.list.d/ubuntu.sources

sudo apt update

更新

sudo apt update && sudo apt upgrade -y

sudo apt install -y curl

sudo apt install -y vim

安装并启动ssh

sudo apt install -y openssh-server

sudo systemctl start ssh

sudo systemctl enable ssh

启动防火墙

sudo apt install -y ufw

sudo ufw allow 22/tcp

sudo ufw enable

sudo ufw reload

安装jdk-17

sudo apt update

sudo apt install openjdk-17-jdk

安装redis

sudo apt install -y redis-server

sudo cp /etc/redis/redis.conf /etc/redis/redis.conf.bak

sudo sed -i 's/bind 127.0.0.1 -::1/bind 0.0.0.0/g; s/protected-mode yes/protected-mode no/g' /etc/redis/redis.conf

sudo systemctl restart redis

sudo systemctl enable redis-server

sudo ufw allow 6379/tcp

sudo ufw reload

安装nginx

sudo apt install -y nginx;

cat /etc/nginx/nginx.conf;

sudo systemctl restart nginx;

sudo systemctl enable nginx;

sudo ufw allow 80/tcp;

sudo ufw reload

安装PG18

sudo apt update

sudo apt install -y postgresql postgresql-client

pg_lsclusters
关联地址

安装nodejs24 LTS

sudo apt remove nodejs

sudo apt remove npm

curl -fsSL https://deb.nodesource.com/setup_24.x | sudo bash -

sudo apt install -y nodejs

node -v

npm -v

安装Git

更新系统

sudo apt update && sudo apt upgrade -y

添加 Git 官方 PPA

sudo add-apt-repository ppa:git-core/ppa -y

更新包列表并安装 Git

sudo apt update && sudo apt install git -y

验证安装版本

git --version

安装opencode

curl -fsSL https://opencode.ai/install | bash

安装openflow

sudo apt install -y curl

sudo apt install build-essential

curl -fsSL https://openclaw.ai/install.sh | bash

相关推荐
winfreedoms11 小时前
VMware 桥接模式无法联网:从 DHCPDISCOVER 到静态 IP 的完整排障实战
网络协议·tcp/ip·ubuntu·桥接模式·vmware·嵌入式学习
静止了 所有的花开1 天前
Ubuntu 26.04 静态 IP 配置不生效解决方法
linux·ubuntu·静态ip
桑榆4162 天前
双系统(Windows + Ubuntu)安装流程
linux·windows·ubuntu
sunly_2 天前
TypeScript:3、类型声明与类型推断
javascript·ubuntu·typescript
wengqidaifeng2 天前
1.从“会敲命令”到理解 Linux:15 个基础指令、文件树与命令执行的本质
linux·运维·服务器·ubuntu
问天_观心2 天前
虚拟环境WSL之Ubuntu的安装
人工智能·ubuntu
lyx49492 天前
# Ubuntu/Linux 安装 Claude Code 并接入火山方舟 Coding Plan 完整教程(避坑版)
linux·运维·ubuntu
码农阿豪2 天前
Ubuntu部署GodoOS:Docker搭建Web办公桌面并实现远程访问
前端·ubuntu·docker
Groundwork Explorer2 天前
WSL2 Ubuntu 22.04 LTS ESP-IDF 5.5 Micropython 1.28 固件编译指南
运维·python·单片机·ubuntu
zhangrelay3 天前
ROS 2 Lyrical 第4章 URDF机器人建模与Gazebo Garden仿真
linux·笔记·学习·ubuntu·机器人·ros2