通过代码设置
const server = app.listen(port, () => {
console.log('主机名称:', global.hostname)
console.log('主机IP地址:', global.host)
console.log('后台服务端口号:', port)
console.log('恭喜你,启动成功!')
process.title = `node ${port}`
figlet('SUCCESS', function (err, data) {
if (err) {
console.log('Something went wrong...')
console.dir(err)
return
}
console.log(data)
})
})
在package.json里配置
人工智能学习网站
https://chat.xutongbao.top