Below you will find pages that utilize the taxonomy term “集群”
Posts
Geoserver搭建及集群服务配置
环境要求: 操作系统 IP地址 节点情况 部署方式 ubuntu16.04_x64 192.168.5.100 Master tomcat部署war包 ubuntu16.04_x64 192.168.5.101 Node1 sh方式部署 ubuntu16.04_x64 192.168.5.102 Node2 sh方式部署 Master、Node节点需先配置好Java1.8的环境
配置好Master上的nfs文件系统给Node调用,nfs文件系统中存储的是Geroserver的工作文件目录,即GEOSERVER_DATA_DIR变量
Master配置tomcat、ActiveMq、jms等 安装tomcat时不要用su权限去安装 配置tomcat环境
sudo nano tomcat/bin/startup.sh export JAVA_HOME=/home/ubuntu/jdk1.8 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=.:${JAVA_HOME}/bin:$PATH export TOMCAT_HOME=/home/ubuntu/tomcat sudo nano tomcat/bin/catalina.sh UMASK改为0 配置geoserver的工作目录 nano tomcat/webapps/geoserver/WEB-INF/web.xml 添加GEOSERVER_DATA_DIR配置项为设置好的nfs文件共享目录 ActiveMq配置消息,用于同步Master中的配置到Node中 下载activemqBroker-2.
Posts
Postgresql的postgis、citus集群搭建
安装环境: 操作系统:ubuntu16.04_x64 软件版本:postgresql10、postgis3、citus 节点情况: 操作系统 IP地址 节点情况 ubuntu16.04_x64 192.168.5.100 Master ubuntu16.04_x64 192.168.5.101 Salver1 ubuntu16.04_x64 192.168.5.102 Salver2 安装命令: 三台服务器都执行以下命令,安装好postgresql10+postgis3+citus
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt xenial-pgdg main" >> /etc/apt/sources.list' wget --quiet -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add - sudo apt update sudo apt install postgresql-10 postgresql-10-postgis-3-scripts postgis postgresql-10-citus 三台服务器都要修改数据库密码和postgres用户密码 修改数据库密码
sudo -u postgres psql ALTER USER postgres WITH PASSWORD '123456'; \q 修改ubuntu操作系统的postgres用户的密码(密码要与数据库用户postgres的密码相同)