美文网首页
在Ubuntu Server 22.04 LTS 上部署BT面板

在Ubuntu Server 22.04 LTS 上部署BT面板

作者: 放羊的老头 | 来源:发表于2023-02-19 10:43 被阅读0次

部署前工作:

首先,从官网下载Ubuntu Server 22.04 ISO并制成引导U盘或者CDROM引导盘;
其次,最小化安装系统,对snap预装软件包进行合理选择。我们仅选择安装了sshd服务软件包。
然后,服务器环境的设置,步骤如下:

0: 更新升级服务器软件版本

sudo apt update
sudo apt upgrade

1、设置服务器时区+8上海时区并回写入BIOS

sudo timedatectl set-timezone Asia/shanghai
sudo hwclock --systohc

2、设置服务器的字符集,以支持中文显示

sudo apt-get install language-pack-zh*
sudo vi /var/lib/locales/supported.d/local

添加字符集内容:

en_US.UTF-8 UTF-8
zh_CN.UTF-8 UTF-8
zh_CN.GBK GBK
zh_CN GB2312

生成本地字符集并设置默认字符集

sudo locale-gen
sudo vi /etc/default/locale

添加内容:

LANG="zh_CN.UTF-8"

sudo reboot
locale

3、 配置相关网络参数,具体参数根据实际情况调整

sudo apt install net-tools
ifconfig -a  # 查看网卡状态及配置
vi /etc/netplan/xxx.yaml # 修改yaml配置文件

修改内容:

network:
ethernets:
enp0s5:
dhcp4:no # close dhcp
addresses: [192.168.31.9/24]
gateway4: 192.168.31.1
nameserver:
addresses: [192.168.31.1]

重新启用网络

sudo netplan apply

某些应用可以使用resolv解析DNS,则需要进行软链接处理

sudo ln -sf /run/systemd/resolve/resolv.conf etc/resolv.conf

4、 安装docker及参考资料,也可以在BT面板中安装
安装Engine引擎

https://docs.docker.com/engine/install/ubuntu/

安装compose容器编排工具

https://docs.docker.com/compose/install/linux/

5、 安装bt面板并配置相关服务,ssh、ftp、ngnix、php、mysql、GO等

wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec

6、安装seatable

https://docs.seatable.cn/published/seatable-manual/docker/seatable-ce/Deploy%20SeaTable%20with%20Docker.md

初始化数据库
sudo docker-compose up
启动容器
sudo docker-compose up -d
启动 SeaTable 服务
docker exec -d seatable /shared/seatable/scripts/seatable.sh start
创建一个管理员帐户
docker exec -it seatable /shared/seatable/scripts/seatable.sh superuser  

相关文章

网友评论

      本文标题:在Ubuntu Server 22.04 LTS 上部署BT面板

      本文链接:https://www.haomeiwen.com/subject/gnsikdtx.html