简体   繁体   English

AEM 服务器在本地运行,但 localhost 拒绝连接

[英]AEM server is running locally but localhost refuses to connect

I am trying to run an AEM site locally on a mac I run the server using the command我正在尝试在 Mac 上本地运行 AEM 站点我使用命令运行服务器

java -Xmx2048m -jar AEM_6.4_Quickstart.jar

I am getting this response back:我收到了这个回复:

Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 2048 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename '/Users/jimmymona/Development/OnBeat/TFS/AEM_6.4_Quickstart.jar'
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stdout.log
Redirecting stderr to /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stderr.log
Press CTRL-C to shutdown the Quickstart server...

/Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stdout.log is showing this: /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stdout.log 显示:

Loading quickstart properties: default
Loading quickstart properties: instance
Quickstart startup at Wed Jun 02 11:33:24 EDT 2021
UpgradeUtil.handleInstallAndUpgrade has mode RESTART
02.06.2021 11:33:24.188 *INFO * [main] Setting sling.home=/Users/jimmymona/Development/OnBeat/TFS/crx-quickstart (command line)
02.06.2021 11:33:24.189 *INFO * [main] Starting Apache Sling in /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart
02.06.2021 11:33:24.191 *INFO * [main] Sling  Extension Lib Home : /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/launchpad/ext
02.06.2021 11:33:24.195 *INFO * [main] Checking launcher JAR in folder /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/launchpad
02.06.2021 11:33:24.205 *INFO * [main] Existing launcher is up to date, using it: 5.6.10.2_6_26 (org.apache.sling.launchpad.base.jar)
02.06.2021 11:33:24.206 *INFO * [main] Loading launcher class org.apache.sling.launchpad.base.app.MainDelegate from org.apache.sling.launchpad.base.jar
02.06.2021 11:33:24.206 *INFO * [main] External Libs Home (ext) is null or does not exists.
02.06.2021 11:33:24.213 *INFO * [main] Setting sling.properties=conf/sling.properties
02.06.2021 11:33:24.213 *INFO * [main] Setting sling.home=/Users/jimmymona/Development/OnBeat/TFS/crx-quickstart
02.06.2021 11:33:24.213 *INFO * [main] Setting sling.launchpad=/Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/launchpad
02.06.2021 11:33:24.213 *INFO * [main] Setting org.osgi.service.http.port=4502
02.06.2021 11:33:24.213 *INFO * [main] Starting launcher ...
02.06.2021 11:33:24.218 *INFO * [main] HTTP server port: 4502
02.06.2021 11:33:24.353 *INFO * [main] Startup completed

/Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stderr.log is showing: /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stderr.log 显示:

Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 2048 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename '/Users/jimmymona/Development/OnBeat/TFS/AEM_6.4_Quickstart.jar'
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stdout.log
Redirecting stderr to /Users/jimmymona/Development/OnBeat/TFS/crx-quickstart/logs/stderr.log
ResourceProvider paths=[/gui, /gui/default]

So it looks like everything is running properly, but localhost:4502 is showing "This site can't be reached" with "ERR_CONNECTION_REFUSED".所以看起来一切运行正常,但 localhost:4502 显示“无法访问此站点”和“ERR_CONNECTION_REFUSED”。 I am not running any Proxies and my Firewall is off, not sure what else to check.我没有运行任何代理并且我的防火墙已关闭,不知道还有什么要检查的。 Any ideas?有任何想法吗?

Yes, you have to figure out which process is blocking the 4502 port, but you can start AEM on a different port, rename your jar to cq-author-p4504.jar, cq-author-p8080.jar, or any other port. Yes, you have to figure out which process is blocking the 4502 port, but you can start AEM on a different port, rename your jar to cq-author-p4504.jar, cq-author-p8080.jar, or any other port. Of course, you will have to configure maven and any other tool or utility to deploy your code which assumes 4502 as the default port.当然,您必须配置 maven 和任何其他工具或实用程序来部署假定 4502 作为默认端口的代码。

Try deleting crx-quickstart folder and restarting the jar.尝试删除 crx-quickstart 文件夹并重新启动 jar。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM