ํฐ์คํ ๋ฆฌ ๋ทฐ
[ Geoserver ] ์ง์ค์๋ฒ(geoserver) ์ค์นํ๊ธฐ ( ํ๊ฒฝ์ค์ ์ก๋๋ฒ )
Kithub 2023. 3. 16. 00:031. install ํ์ผ ๋ค์ด๋ก๋
https://geoserver.org/download/

geoserver ์ค์นํ์ผ์ ์ํด stable ๋ฒ์ ์ ์ ํํฉ๋๋ค.

' windows Installer ' ๋ฅผ ์ ํํด geoserver๋ฅผ ๋ค์ด๋ก๋ ํฉ๋๋ค.

๋ค์ด๋ก๋๊ฐ ๋์ด๋๋ฉด ์์ถ์ ์ํ๋ ์์น์ ํ์ด์ค๋๋ค.
(์ ๋ C:\Program Files ์์น์ ํ๋๋ก ํ๊ฒ ์ต๋๋ค.)

์ด์ geoserver ์คํํ์ผ์ด ์ค๋น ๋์์ต๋๋ค.
ํ๋ฒ ์คํ์ ํด๋ณผ๊น์?
์คํ์ ๊ฐ๋จํฉ๋๋ค.

bin ํด๋ ์์๋ startup.bat ๊ณผ shutdown.bat ํ์ผ์ด ์กด์ฌํ๋ ๊ฒ์ ์ ์์์ต๋๋ค.
๋ง๊ทธ๋๋ก
startup.bat์ geoserver๋ฅผ ์์ ํ๊ณ ,
shutdown.bat์ ๋ฐ๋๋ก geoserver๋ฅผ ์ข ๋ฃํ๋
์คํํ์ผ์ ๋๋ค.
๊ทธ๋ฆฌ๊ณ ์ด์ ์ฐ๋ฆฌ๋ ํ๊ฒฝ๋ณ์๋ฅผ ์ค์ ํด์ฃผ์ด์ผ ํฉ๋๋ค.
๊ทธ์ด์ ๋
startup.sh ํ์ผ์ ์ด์ด๋ณด๋ฉด ๋ค์๊ณผ ๊ฐ์ ์คํฌ๋ฆฝํธ๋ฅผ ํ์ธ ํ ์ ์์ต๋๋ค.
#!/bin/sh
# -----------------------------------------------------------------------------
# Start Script for GEOSERVER
#
# $Id$
# -----------------------------------------------------------------------------
# Guard against misconfigured JAVA_HOME
if [ ! -z "$JAVA_HOME" -a ! -x "$JAVA_HOME"/bin/java ]; then
echo "The JAVA_HOME environment variable is set but JAVA_HOME/bin/java"
echo "is missing or not executable:"
echo " JAVA_HOME=$JAVA_HOME"
echo "Please either set JAVA_HOME so that the Java runtime is JAVA_HOME/bin/java"
echo "or unset JAVA_HOME to use the Java runtime on the PATH."
exit 1
fi
# Find java from JAVA_HOME or PATH
if [ ! -z "$JAVA_HOME" ]; then
_RUNJAVA="$JAVA_HOME"/bin/java
elif [ ! -z "$(which java)" ]; then
_RUNJAVA=java
else
echo "A Java runtime (java) was not found in JAVA_HOME/bin or on the PATH."
echo "Please either set the JAVA_HOME environment variable so that the Java runtime"
echo "is JAVA_HOME/bin/java or add the Java runtime to the PATH."
exit 1
fi
if [ -z $GEOSERVER_HOME ]; then
#If GEOSERVER_HOME not set then guess a few locations before giving
# up and demanding user set it.
if [ -r start.jar ]; then
echo "GEOSERVER_HOME environment variable not found, using current "
echo "directory. If not set then running this script from other "
echo "directories will not work in the future."
export GEOSERVER_HOME=`pwd`
else
if [ -r ../start.jar ]; then
echo "GEOSERVER_HOME environment variable not found, using current "
echo "location. If not set then running this script from other "
echo "directories will not work in the future."
export GEOSERVER_HOME=`pwd`/..
fi
fi
if [ -z "$GEOSERVER_HOME" ]; then
echo "The GEOSERVER_HOME environment variable is not defined"
echo "This environment variable is needed to run this program"
echo "Please set it to the directory where geoserver was installed"
exit 1
fi
fi
if [ ! -r "$GEOSERVER_HOME"/bin/startup.sh ]; then
echo "The GEOSERVER_HOME environment variable is not defined correctly"
echo "This environment variable is needed to run this program"
exit 1
fi
#Find the configuration directory: GEOSERVER_DATA_DIR
if [ -z $GEOSERVER_DATA_DIR ]; then
if [ -r "$GEOSERVER_HOME"/data_dir ]; then
export GEOSERVER_DATA_DIR="$GEOSERVER_HOME"/data_dir
else
echo "No GEOSERVER_DATA_DIR found, using application defaults"
GEOSERVER_DATA_DIR=""
fi
fi
cd "$GEOSERVER_HOME"
if [ -z $MARLIN_JAR]; then
export MARLIN_JAR=`find \`pwd\`/webapps -name "marlin*.jar" | head -1`
export MARLIN_ENABLER="-Xbootclasspath/a:$MARLIN_JAR -Dsun.java2d.renderer=org.marlin.pisces.MarlinRenderingEngine"
fi
echo "GEOSERVER DATA DIR is $GEOSERVER_DATA_DIR"
#added headless to true by default, if this messes anyone up let the list
#know and we can change it back, but it seems like it won't hurt -ch
exec "$_RUNJAVA" $JAVA_OPTS $MARLIN_ENABLER -DGEOSERVER_DATA_DIR="$GEOSERVER_DATA_DIR" -Djava.awt.headless=true -DSTOP.PORT=8079 -DSTOP.KEY=geoserver -jar start.jar
geoserver๋ ์๋ฒ๋ฅผ ์คํํ๋ฉด์
ํ๊ฒฝ๋ณ์ $GEOSERVER_HOME๊ณผ $GEOSERVER_DATA_DIR ๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ ํ์ธ ํ ์ ์์ต๋๋ค.
์์ ํ๊ฒฝ๋ณ์๋ฅผ ์ค์ ํ์ง ์์ผ๋ฉด ์ง์ค์๋ฒ๋ ์ ์์ ์ผ๋ก ์คํ๋์ง ์์ต๋๋ค.
์ ๊ทธ๋ฌ๋ฉด ๋ฐ๋ก ํ๊ฒฝ๋ณ์๋ฅผ ์ค์ ํด๊ฒ ์ต๋๋ค.
2. ์์คํ ํ๊ฒฝ๋ณ์ ์ค์
CTRL + R ๋จ์ถํค๋ก CMD ์ฐฝ์ ์ด๊ณ sysdm.cpl ,3๋ฅผ ์ ๋ ฅํด์ฃผ๋ฉด
ํ๊ฒฝ๋ณ์๋ฅผ ์ค์ ํ ์ ์๋ ์์ฑ์ฐฝ์ด ์ด๋ฆฝ๋๋ค.

'ํ๊ฒฝ ๋ณ์' ๋ฅผ ๋๋ฌ์ค๋๋ค.

'์๋ก ๋ง๋ค๊ธฐ' ๋ฒํผ์ ๋๋ฌ ์์์ ์ธ๊ธ๋ ๋ ํ๊ฒฝ๋ณ์๋ฅผ ์ถ๊ฐํด ์ค๋๋ค.

GEOSERVER_HOME ๋ณ์ ์ค์
๋ณ์ ์ด๋ฆ : GEOSERVER_HOME
๋ณ์๊ฐ : C:\Program Files\geoserver-2.18.0-bin (์ค์น์์น)

GEOSERVER_DATA_DIR ๋ณ์ ์ค์
๋ณ์ ์ด๋ฆ : GEOSERVER_DATA_DIR
๋ณ์๊ฐ : C:\Program Files\geoserver-2.18.0-bin\data_dir (์ค์น์์น)
์ด์ ํ๊ฒฝ๋ณ์๊ฐ ๋ชจ๋ ์ค์ ๋์์ต๋๋ค.
์ด์ startup.bat๋ฅผ ์คํํ๋ฉด ์๋ ํ๋ฉด์ฒ๋ผ geoserver ๊ด๋ฆฌ์ํ์ด์ง๋ฅผ ํ์ธ ํ ์ ์์ต๋๋ค.

๋ค์๊ณผ ๊ฐ์ด 503์๋ฌ๊ฐ ๋ฐ์ํ์ ๋ค๋ฉด

1. gwc ํด๋๋ฅผ ์์ฑํด์ค๋ค.
C:\Program Files\geoserver-2.18.0-bin\data_dir ํด๋์์
'gwc' ํด๋๋ฅผ ์๋ก ์์ฑํด ์ฃผ์๋ฉด ๋ฉ๋๋ค.

2. ๊ด๋ฆฌ์๊ถํ์ผ๋ก startup.bat์ ์คํํ๋ค.
'โ Tools' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[ Tools ] putty " software caused connection abort " ์๋ฌ (0) | 2019.08.09 |
---|