I followed these steps: https://experienceleague.adobe.com/docs/experience-manager-learn/foundation/development/set-up-a-loc...
On windows and it works.
Then I setup two ubunutu boxes with oracle java 11, one runing the author, and one runing the publisher. Author starts correctly on port 4502, but publisher starts incorrectly on port 4502 intstead of 4503.
The jar is called: /home/aem/publish/aem-publish-p4503.jar
I unpacked it like this:
$ java -jar *.jar -unpack
Then I run it like this:
$ /home/aem/publish/crx-quickstart/bin
However, when I do ps -ef | grep java I get this:
aem 16589 1 33 13:11 pts/0 00:10:03 java -server -Xmx1024m -XX:MaxPermSize=256M -Djava.awt.headless=true -Dsling.run.modes=author,crx3,crx3tar -Djava.locale.providers=CLDR,JRE,SPI -jar crx-quickstart/app/cq-quickstart-6.5.0-standalone-quickstart.jar start -c crx-quickstart -i launchpad -p 4502 -Dsling.properties=conf/sling.properties
When I try to hit the site on 4503 i get connection refused.
when i connecto the publisher server on 4502, I get the author UI, not the site.
I dont see anything obvious in error.log.
NOTE: I start it via start script because if I just run the jar, it always fails.
Is this normal behaviour?
Are there some manual switches to force it to run as publisher on port 4503?
I tried $ ./start -p 4503 but this is not picked up. I undestand I can edit the conf/sling.properties, or setup some env vars, but what shoudl the be?
I see the author run mode is -Dsling.run.modes=author,crx3,crx3tar What should he publish run mode be, and how to I best set it?
$ java -version
java version "11.0.9" 2020-10-20 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.9+7-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.9+7-LTS, mixed mode)