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

相关推荐
艾莉丝努力练剑3 小时前
OpenCode AI 编程:Ubuntu 24.04 环境安装与使用指南
linux·服务器·网络·人工智能·tcp/ip·ubuntu
Tian_Hang5 小时前
Eclipse Ditto 的权限策略
java·服务器·前端·网络·ide·ubuntu·eclipse
一杯奶茶¥12 小时前
Ubuntu系统镜像各个版本下载Ubuntu镜像合集资源Linux系统镜像乌班图Linux系统镜像
linux·运维·ubuntu·镜像·;inux镜像·ubuntu镜像
☆cwlulu1 天前
调试排查工具介绍(gdb、strace、Valgrind等)
开发语言·c++·嵌入式硬件·ubuntu
瓶中怪1 天前
ROS2 机器人软件系统
linux·c++·python·ubuntu·vmware·ros2·机器人软件开发
學點1 天前
Linux ubuntu安装redis
linux·redis·ubuntu
河铃旅鹿1 天前
在Ubuntu系统上为Android交叉编译OpenSSL
android·linux·ubuntu
jimy11 天前
Ubuntu原生安装Claude code
linux·运维·ubuntu
why_blogs1 天前
VM Ware右上角的网络图标丢失
ubuntu
艾文伯特1 天前
k8s-1.35-ubuntu-安装文档.md
ubuntu·容器·kubernetes