Page tree
Skip to end of metadata
Go to start of metadata

You need some configuration after the creation of the Vultr server. First, update the packages and install some essential software:

# yum update
...
# yum install wget mc java-1.7.0-openjdk-devel.x86_64 java-1.7.0-openjdk.x86_64 rsync unzip screen man net-tools bzip2
...

Set up the CentOS community repository (optionally on Vultr):

# wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
...
# rpm -Uvh epel-release-7-5.noarch.rpm
...

Install the munin-node package:

# yum install munin-node
...

Configure the name of the server and enable the connection from the munin-server (currently munin.gacivs.info):

/etc/munin/munin-node.conf
allow 108.61.170.194
allow munin.gacivs.info

Add plugins to the munin:

# cd /etc/munin/plugins/
# ln -s /usr/share/munin/plugins/selinux_avcstat
# ln -s /usr/share/munin/plugins/iostat_ios
# ln -s /usr/share/munin/plugins/iostat
# ln -s /usr/share/munin/plugins/http_loadtime
# ln -s /usr/share/munin/plugins/fw_forwarded_local
# ln -s /usr/share/munin/plugins/fw_conntrack
# ln -s /usr/share/munin/plugins/apache_volume
# ln -s /usr/share/munin/plugins/apache_processes 
# ln -s /usr/share/munin/plugins/apache_accesses

Set up the run levels and start the service:

# chkconfig --levels 235 munin-node on
...
# service munin-node start

Add the new node to the munin-server configuration:

/etc/munin/munin.conf
[portal.gacivs.info]
    address 104.238.133.202
    use_node_name yes

Set up the mail service and add a relay host (currently smtp-relay.gmail.com):

/etc/postfix/main.cf
mydomain = gacivs.info
smtp_helo_name = gacivs.info
relayhost = [smtp-relay.gmail.com]:587

Restart the mail service:

# service postfix restart
...

...and add the IPv6 address of the host to the IP white list of the Google's SMTP relay service.

Set up the hostname of the server:

# hostnamectl set-hostname portal.gacivs.info

Create a swap file, switch on and check it:

# dd if=/dev/zero of=/root/swapfile bs=1024 count=1048576
...
# chmod 600 /root/swapfile
# mkswap /root/swapfile
...
# swapon /root/swapfile
...
# free
             total       used       free     shared    buffers     cached
Mem:        502272     491988      10284          0       6468     421780
-/+ buffers/cache:      63740     438532
Swap:      1048568          0    1048568

Add it to the fstab:

/etc/fstab
/root/swapfile          swap                    swap    defaults        0 0

Set up the time zone:

# mv /etc/localtime /etc/localtime.orig
# ln -s /usr/share/zoneinfo/Europe/Budapest /etc/localtime

PostgreSQL

Install the PostgreSQL:

# yum install postgresql-server.x86_64 postgresql.x86_64
...
# service postgresql initdb

Set up the password based authentication from the local address (127.0.0.1/32) and the private network (10.0.0.0/8):

data/pg_hba.conf
local   all         all                               ident
# IPv4 local connections:
host    all         all         127.0.0.1/32          password
host    all         all         127.0.0.1/32          ident
host    all         all         10.0.0.0/8            password
# IPv6 local connections:
host    all         all         ::1/128               password
host    all         all         ::1/128               ident

Configure the listen addresses (optional):

data/postgresql.conf
listen_addresses = '*'          # what IP address(es) to listen on;

Set up the run levels of the PostgreSQL:

# chkconfig --levels 235 postgresql on

Check the connection:

# su - postgres
$ psql
psql (9.2.7)
Type "help" for help.
postgres=#
      
      
Page viewed times
#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels