多八多低代码应用私有部署指南(1)
wget -O install.sh https://download.bt.cn/install/install-ubuntu_6.0.sh && sudo bash install.sh ed8484bec
d8ddemo
d8ddemo
123123
test
test
mkdir /home/d8ddemo && cd /home/d8ddemo
wget -O install.sh https://d8doss.y2o.me/d8dbase/install.sh && sudo bash install.sh ed8484bec
/home/d8ddemo/config.json
{
"APP_V2_PORT": 8080,
"DB_CONFIG": {
"host": "localhost",
"user": "d8ddemo",
"password": "123123",
"database": "d8ddemo",
"port": "3306"
},
"REDIS_CONFIG": {
"host": "localhost",
"user": "",
"password": "",
"port": "6379",
"db": 0
}
}
d8ddemo.d8dcloud.com
解析到服务器。d8ddemo.d8dcloud.com
/
https://d8ddemo.d8dcloud.com/api/1214
/home/d8ddemo/appCode
目录下创建文件n1214.json
,并将代码粘贴进去。./d8dbase
d8dbase
设置为服务为了确保 d8dbase
在终端关闭或服务器重启后仍然能够运行,我们需要将其设置为系统服务。以下是具体步骤:
cd
命令导航到 /etc/systemd/system/
目录。d8dbase.service
的新文件。d8dbase.service
文件中,输入以下内容:[Unit]
Description=d8dbase
After=network.target redis.service mysql.service
[Service]
Type=simple
User=root
Group=root
Restart=on-failure
RestartSec=10
WorkingDirectory=/home/d8ddemo
ExecStart=/home/d8ddemo/d8dbase
[Install]
WantedBy=multi-user.target
systemd
:sudo systemctl daemon-reload
d8dbase
服务:
sudo systemctl start d8dbase
d8dbase
在服务器重启时自动启动:sudo systemctl enable d8dbase
sudo journalctl -u d8dbase -f
sudo systemctl restart d8dbase
wget -O updateBase.sh https://d8doss.y2o.me/d8dbase/updateBase.sh && sudo bash updateBase.sh ed8484bec
wget -O updatePlayer.sh https://d8doss.y2o.me/d8dbase/updatePlayer.sh && sudo bash updatePlayer.sh ed8484bec
本指南详细介绍了如何在Ubuntu服务器上搭建Nginx、MySQL、Redis环境,并部署多八多AiIDE服务器基座。通过宝塔面板进行操作,简化了配置过程。确保按照步骤进行操作,特别是配置文件config.json
和反向代理规则,这些是确保应用正常运行的关键。完成部署