File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7777 执行命令安装 nodejs。
7878 ```
7979 # 下载并安装 nodejs,node 版本可能会变化,如版本升级,请更新连接
80- wget https://nodejs.org/dist/latest-v22.x/node-v22.21.0 -linux-x64.tar.gz
81- tar xvf node-v22.21.0 -linux-x64.tar.gz
82- mv node-v22.21.0 -linux-x64 /opt/node-v22.21.0
80+ wget https://nodejs.org/dist/latest-v22.x/node-v22.21.1 -linux-x64.tar.gz
81+ tar xvf node-v22.21.1 -linux-x64.tar.gz
82+ mv node-v22.21.1 -linux-x64 /opt/node-v22.21.1
8383
8484 # 添加环境变量
85- echo "export PATH=\$ PATH:/opt/node-v22.21.0 /bin" >> ~ /.bashrc
85+ echo "export PATH=\$ PATH:/opt/node-v22.21.1 /bin" >> ~ /.bashrc
8686
8787 # 使环境变量生效
8888 source ~ /.bashrc
9191 验证 nodejs。
9292 ```
9393 root@iZt4ndy6544y6f1i99ahw0Z:~ # node --version
94- v22.21.0
94+ v22.21.1
9595
9696 root@iZt4ndy6544y6f1i99ahw0Z:~ # npm version
9797 {
98- npm: '10.9.4',
99- node: '22.21.0 ',
100- acorn: '8.15.0',
101- ada: '2.9.2',
102- amaro: '1.1.4',
103- ares: '1.34.5',
104- brotli: '1.1.0',
105- cjs_module_lexer: '2.1.0',
106- cldr: '47.0',
107- icu: '77.1',
108- llhttp: '9.3.0',
109- modules: '127',
110- napi: '10',
111- nbytes: '0.1.1',
112- ncrypto: '0.0.1',
113- nghttp2: '1.64.0',
114- openssl: '3.5.4',
115- simdjson: '3.13.0',
116- simdutf: '6.4.2',
117- sqlite: '3.50.4',
118- tz: '2025b',
119- undici: '6.22.0',
120- unicode: '16.0',
121- uv: '1.51.0',
122- uvwasi: '0.0.23',
123- v8: '12.4.254.21-node.33',
124- zlib: '1.3.1-470d3a2',
125- zstd: '1.5.7'
98+ npm: '10.9.4',
99+ node: '22.21.1 ',
100+ acorn: '8.15.0',
101+ ada: '2.9.2',
102+ amaro: '1.1.4',
103+ ares: '1.34.5',
104+ brotli: '1.1.0',
105+ cjs_module_lexer: '2.1.0',
106+ cldr: '47.0',
107+ icu: '77.1',
108+ llhttp: '9.3.0',
109+ modules: '127',
110+ napi: '10',
111+ nbytes: '0.1.1',
112+ ncrypto: '0.0.1',
113+ nghttp2: '1.64.0',
114+ openssl: '3.5.4',
115+ simdjson: '3.13.0',
116+ simdutf: '6.4.2',
117+ sqlite: '3.50.4',
118+ tz: '2025b',
119+ undici: '6.22.0',
120+ unicode: '16.0',
121+ uv: '1.51.0',
122+ uvwasi: '0.0.23',
123+ v8: '12.4.254.21-node.33',
124+ zlib: '1.3.1-470d3a2',
125+ zstd: '1.5.7'
126126 }
127127 ```
128128
213213!!! Abstract ""
214214 为了支持 Oracle 11 以及 thick 模型,我们需要安装 Oracle Instant Client。可以到 Oracle 官网下载对应的版本,地址是 https://www.oracle.com/database/technologies/instant-client/downloads.html
215215
216+ 若不需要使用 Oracle thick 模式的话,可以略过此步骤。
217+
216218 以 Ubuntu 为例,安装示例如下:
217219 ```bash
218220 root@iZt4n9ii50pwh74bs5bhuzZ:~# wget https://download.oracle.com/otn_software/linux/instantclient/2326000/instantclient-basic-linux.x64-23.26.0.0.0.zip
264266
265267### 3.4 运行
266268!!! Abstract ""
269+ 进入到 backend 文件夹下,执行下面的命令:
267270
268271 ```
269272 source .venv/bin/activate
Original file line number Diff line number Diff line change 3939 --restart unless-stopped \
4040 -p 8000:8000 \
4141 -p 8001:8001 \
42- -e SERVER_IMAGE_HOST=http://47.92.75.231:8001/images/
42+ -e SERVER_IMAGE_HOST=http://47.92.75.231:8001/images/ \
4343 -v data/sqlbot/excel:/opt/sqlbot/data/excel \
4444 -v ./data/sqlbot/file:/opt/sqlbot/data/file \
4545 -v data/sqlbot/images:/opt/sqlbot/images \
You can’t perform that action at this time.
0 commit comments