ν°μ€ν 리 λ·°
[ 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 |
---|