[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"getwebinfo":3,"news-item-22":4},null,{"classListRes":-1,"articleRes":5},{"code":6,"msg":3,"data":7,"total":3},200,{"id":8,"dwo_html":9,"dwo_name":10,"dwo_image":11,"dwo_time":12,"dwo_brief":13,"dwo_keywords":14,"dwo_cid":15,"dwo_show":16,"dwo_uid":17,"dwo_status":18,"dwo_comment_count":19,"dwo_status_reason":3,"dwo_status_time":3,"status_text":20},22,"\u003Cp>\u003Cbr>\u003C\u002Fp>\u003Ch3 style=\"text-align: start;\">注意：当前教程是您将源码编译完成后，进行的操作\u003C\u002Fh3>\u003Cp style=\"text-align: left;\">github项目地址：\u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fnacrcn\u002Fnacrbbs\" target=\"_blank\">github\u003C\u002Fa>\u003C\u002Fp>\u003Chr\u002F>\u003Cp style=\"text-align: left;\">\u003Cbr>\u003C\u002Fp>\u003Ch3 style=\"text-align: start;\">1. 前往宝塔的应用中心，安装nodejs项目管理器\u003C\u002Fh3>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768961613340_l2y94h.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>\u003Ch3 style=\"text-align: start;\">2. 安装完成后，安装nodejs版本，最好选择22或者24\u003C\u002Fh3>\u003Cp style=\"text-align: start;\"> &nbsp; 安装完成后，命令行版本选择你安装的版本即可\u003C\u002Fp>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768961652795_5itb7d.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>\u003Ch3 style=\"text-align: start;\">3. 创建文件夹，上传源码，分别为：后端nodejs,前端nodejs,后台nodejs\u003C\u002Fh3>\u003Cp style=\"text-align: start;\"> &nbsp; 这里我将前后台的前端放在了web中，您可以自由放置\u003C\u002Fp>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768961874093_i6uyzy.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>\u003Ch3 style=\"text-align: start;\">4. 创建nodejs项目，先建立后端\u003C\u002Fh3>\u003Cp style=\"text-align: start;\"> &nbsp; a. 部署后端，如图所示进行配置，注意：如果启动失败，可以将www改为root\u003C\u002Fp>\u003Cp style=\"text-align: start;\"> &nbsp; &nbsp; &nbsp; 数据库以及redis配置请前往\u002Fapp\u002Fconfig进行修改\u003C\u002Fp>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768961933662_w9i5tn.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>\u003Cp style=\"text-align: start;\"> &nbsp; b. 部署前端（前台）\u003C\u002Fp>\u003Cp style=\"text-align: start;\"> &nbsp; &nbsp; &nbsp; 如果端口冲突，请前往server\u002Findex.mjs修改port值\u003C\u002Fp>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768962088178_mwague.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>\u003Cp style=\"text-align: start;\"> &nbsp; 搭建配置如图所示\u003C\u002Fp>\u003Cp style=\"text-align: start;\">\u003Cimg src=\"https:\u002F\u002Fapi.bbs.nacr.cn\u002Fpublic\u002Fupload\u002Fimg_1768962113018_4umaiw.png\" alt=\"\" data-href=\"\" style=\"width: 773.85px;height: auto;\">\u003C\u002Fp>","NacrBBS全开源系统 - 宝塔面板搭建教程","https:\u002F\u002Fimages.xxapi.cn\u002Fimages\u002Facg\u002Fpc\u002Ft01cd729956cb80334d.jpg","2026-01-09 20:31:20","宝塔部署已编译源码：装Node.js管理器（选22\u002F24版本），建前后台后端文件夹传源码，先部署后端（启动失败改www为root，配置在\u002Fapp\u002Fconfig），再部署前端（端口冲突改server\u002Findex.mjs的port），按图配置。","NacrBBS,开源论坛系统,宝塔部署,论坛搭建,BBS系统,开源项目部署",4,"1",16,1,0,"已上架"]