将Lucee Server与Command Box一起使用时访问Server Administration页面时遇到问题

问题描述 投票:0回答:1

我最近下载了CommandBox,以尝试设置Lucee Server。我有一个带有Index.cfm页的名为LuceeSever的文件夹。当我键入命令“ box server start”时,它将在以下地址打开一个窗口:http://127.0.0.1:54613显示我的index.cfm页面。酷。

但是我想连接数据源,并且希望通过其他所有人都说要使用的服务器管理面板来完成此操作。因此,当我尝试访问http://127.0.0.1:54613/lucee/admin/server.cfm时,会显示以下屏幕:

enter image description here

因此,我创建了一个password.txt文件,其中包含1行纯文本,这是我要使用的密码。所以我的目录看起来像这样:

LuceeServer>
    index.cfm
    password.txt

其中index.cfm和password.txt处于同一级别。当我单击导入文件时,屏幕将重新加载,并且什么也没有发生。

我假设我的东西设置不正确。我以前从未使用过Commandbox,而且我真的不知道自己在做什么。

server datasource cfml lucee commandbox
1个回答
0
投票

您的password.txt需要进入“根Lucee服务器目录”,该目录与您网站的Web根目录不同。在CommandBox中,该位置有点晦涩,但是您可以使用以下命令找到它:

server info property=serverHomeDirectory
© www.soinside.com 2019 - 2024. All rights reserved.