Sekedar mencatat dan share bagi agan dan sista yang kebetulan admin LPSE. atau sekedar untuk menambah wawasan. untuk installer pada debian Linux
login sebagai root
##konfigurasi network
vim /etc/network/interfaces
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 iniet dhcp / static
address 10.1.23.45 === 192.168.10.
netmask 255.255.240.0
gateway 10.1.31.1.
*)kasi pagar address netmask dan gateway jika set dhcp
simpan :wq atau :!q atau :x
###Konfigurasi DNS Resolvnya
vim /etc/resolv.conf
nameserver 8.8.8.8
domain pengadaannasional-bappenas.go.id
search pengadaannasional-bappenas.go.id
nameserver 116.66.200.20
nameserver 116.66.201.190
nameserver 202.46.64.34
simpan :wq
/etc/init.d/networking restart *)untuk merestart network
###Tambahkan resource repositoriesnya
vim /etc/apt/resources.list
deb http://debian.csie.ntu.edu.tw/debian lenny main contrib non-free
deb http://etc.inittab.org/~agi/debian/libapache-mod-security2/old ./
:wq
apt-get update
###Install apache dan perlengkapannya
apt-get install apache2 apache2-thread-dev unzip postgresql build essential libapache2-mod-evasive libapache2-mod-security2
apt-get install ssh
jalankan ssh dg tujuan ip server
file protocol = scp
masuk ke server /home
buat directory installer
masuk ke directory /home/installer
copy ke /home/installer
folder apahe-tomcat-latihan
folder debian base
folder jdk1.6.0
folder sql_master_230
zipfile epns-web-2.3.0r-23...
zipfile tomcat-connectors-1.2....
silahkan tutup ssh client
#
cd /home/installer/
mkdir -p /home/appserv/epns-lat-230r1/latihan
mkdir -p /home/file_latihan
cp -r apahe-tomcat-latihan/ jdk1.6.0 /usr/local/src/
cp -r debian\ base/apache2/ /etc/
tar -xzf tomcat-connectors-1.2.25-src.tar.gz
cd tomcat-connectors-1.2.25-src
cd netive/
./configure --with-apxs=/usr/bin/apxs2 && make && make install
cd /home/appserv/epns-lat-230r1/latihan
unzip /home/installer/epns-web-2.3.0r1-2.3.0r1-nasional.zip
#
vim /home/appserv/epns-let-230r1/latihan/WEB-INF/classes/aplication.properties
secman.jdbc.url=jdbc:postgresql://localhost/secman_220
secman.jdbc.url=jdbc:postgresql://localhost/secman_latihan
username=secman
pasw=secman
begitu juga dengan epnsnya
#
vim /etc/postgresql/8.3/main/postgresql.conf
#connection settings
listen_address = '*'
:wq
#
vim /etc/postgresql/8.3/main/pg_hba.conf
tambahkan
host all all 10.1.20.107/32 md5 *)alamat sever
:wq
/etc/inid.d/postgresql-8.3 restart
vim /etc/apache2/sites-avaible/default
lat-230 ganti menjadi lat-230r1
:wq
/etc/init.d/apache2 restart
cd /home/installer/sql-Master_230/lat/
chmod -R 777 /home/installer/sql_Master_230/
su postgres
psql
*)posisi di postgres=#
CREATE USER epns;
CREATE USER secman;
ALTER USER epns password 'epns';
ALTER USER secman password 'secman';
\q
createdb -U poetgres - T template0 -O epns epns_latihan
createdb -U poetgres - T template0 -O secman secman_latihan
psql
*)posisi di postgres=#
\c epns_latihan
#epns_latihan=#
\i /home/installer/sql_Master_230/lat/1_epns_master_latihan_220.sql
\i 2_sql_upgrade.......
\i 3_sql_upgrade.......
\i 4_sql_upgrade....... s/d 6_patch
#
\c secman_latihan
\i secman/1_ .. 2_ .sql
\q
exit
chmod -R 777 /usr/local/src/*
vim /usr/local/src/apache-tomcat-latihan/conf/server.xml
###replace
##jalankan catalina
/usr/local/src/apache-tomcat-latihan/bin/catalina.sh run
jalankan secara otomatis
/usr/local/src/apache-tomcat-latihan/bin/starup.sh
vim /etc/rc.local
sebelum exit 0
/usr/local/src/apache-tomcat-latihan/bin/starup.sh
:wq
silahkan di reboot
Sabtu, 04 Januari 2014
Catatan Install LPSE
Langganan:
Posting Komentar (Atom)
0 komentar:
Posting Komentar