This is an old revision of the document!
The reference platforms and their recommended settings are:
service postgresql start su - postgres createdb da createuser sa Superuser? yes psql da create language plpgsql; \q exit
pg_hba.conf - relace authentication method 'ident same' with 'trust' for localhost
postgresql.conf - set parameters depending on server memory size
Parameters/Memory | Default | 4GB | 8GB | 16GB |
---|---|---|---|---|
max_connections | 100 | 200 | 400 | 1000 |
shared_buffers | 32MB | 1GB | 2GB | 4GB |
work_mem | 1MB | 512MB | 1GB | 2GB |
maintenance_work_mem | 16MB | 512MB | 1GB | 2GB |
effective_cache_size | 64KB | 1GB | 3GB | 6GB |
service postgresql restart
(*for Tomcat 7 on OpenSuse 12 and later, see at the end of the page)
ln -s /usr/share/tomcat6 /usr/tomcat
set CATALINA_OPTS="-Djava.awt.headless=true -Xmx1400M"
Note: -Xmx (Maximum Java heap size) for a production system with 4GB of memory should be around 1400M, leaving ample room for PostgreSQL. You may need to change this for systems with higher memories.
cp /usr/tomcat/webapps/da/index.html /usr/tomcat/webapps/ROOT
service tomcat6 start
Ensure that the file /etc/hosts has the IP address as per crystalclear.properties.
Using Yast, set up System Services(Runlevel) so that PostgreSQL and Tomcat are automatically started at boot. Reboot server to complete installation
The next step is to license your server. Click here for details of the licensing process
OpenSuse now uses systemd based service runner, instead of /etc/init.d/tomcat.
You need to make the following changes
- /usr/tomcat/conf/server.xml – change port 8080 to 80
- /usr/tomcat/conf/tomcat.conf – add the lines
TOMCAT_USER="root" TOMCAT_GROUP="root" SECURITY_MANAGER="false" CATALINA_OPTS="-Djava.awt.headless=true -Xmx1400M" #for RAM with 4GB, more for servers with higher RAM
- /usr/lib/systemd/system/tomcat.service – comment out user and group.
- /usr/sbin/tomcat-sysd – comment out the routine for checking uid=0
There is abug in the yast. You cannot top automatic startup of firewall. You need to run these commands
systemctl status SuSEfirewall2.service systemctl enable SuSEfirewall2.service systemctl start SuSEfirewall2.service systemctl stop SuSEfirewall2.service systemctl disable SuSEfirewall2.service