Logfile_installation_OPUS-College_environment_LINUX_Ubuntu.doc

bossprettyingΔιαχείριση Δεδομένων

28 Νοε 2012 (πριν από 4 χρόνια και 9 μήνες)

272 εμφανίσεις

bossprettying_387f8cdd
-
450e
-
4cce
-
a272
-
c86566f0b40f.doc

Pagina
1

van

4

DeployManual OPUS
-
Collegge


note



Version:

1

200
8
-
0
1
-
2
5

Subject

Install

Manual OPUS
-
College

environment

-

LINUX

To

Ed Simons

CC

opus User Group

From

Nelson
Chamba

Karol Nunes

Error! Not a valid
bookmark self
-
reference.

Markus Pscheidt


[date]

[doccodeuci]


move





This document is meant for the
SYSTEM ADMINISTRATOR

and the DEVELOPER


karol@karol
-
ubuntu:~$ ifconfig eth0

eth0 Link encap:Ethernet HWaddr 00:1B:24:53:2F:64


inet addr:192.168.1.79 Bcast:192.168.1.255 Mask:255.255.255
.0


BROADCAST MULTICAST MTU:1500 Metric:1


RX packets:95 errors:0 dropped:0 overruns:0 frame:0


TX packets:46 errors:0 dropped:0 overruns:0 carrier:0


collisions:0 txqueuelen:1000


RX bytes:8705 (8.5 KB) TX
bytes:5379 (5.2 KB)


Interrupt:10


karol@karol
-
ubuntu:~$ ping 192.168.1.1

connect: Network is unreachable

karol@karol
-
ubuntu:~$ sudo /etc/init.d/networking restart

[sudo] password for karol:


* Reconfiguring network interfaces...

[ OK ]

karol@karol
-
ubuntu:~$ ping 192.168.1.1

connect: Network is unreachable

karol@karol
-
ubuntu:~$ ping 192.168.1.1

PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.


---

192.168.1.1 ping statistics
---

3 packets transmitted, 0 recei
ved, 100% packet loss, time 2008ms


karol@karol
-
ubuntu:~$ psql
-
c "ALTER USER postgres WITH PASSWORD
'123_koffie!'"
-
d template1

bash: !'": event not found

karol@karol
-
ubuntu:~$ psql
-
c "ALTER USER postgres WITH PASSWORD
'123_koffie!'"
-
d template1

b
ash: !'": event not found

karol@karol
-
ubuntu:~$ sudo postgres

sudo: postgres: command not found

karol@karol
-
ubuntu:~$ su postgres

Password:

su: Authentication failure

Sorry.

karol@karol
-
ubuntu:~$

karol@karol
-
ubuntu:~$

karol@karol
-
ubuntu:~$

karol@karol
-
ubuntu:~$

karol@karol
-
ubuntu:~$ sudo su

bossprettying_387f8cdd
-
450e
-
4cce
-
a272
-
c86566f0b40f.doc

Pagina
2

van

4

DeployManual OPUS
-
Collegge


root@karol
-
ubuntu:/home/karol# su postgres

postgres@karol
-
ubuntu:/home/karol$ psql
-
d template1

Welcome to psql 8.2.6, the PostgreSQL interactive terminal.


Type:
\
copyright for distribution terms


\
h for hel
p with SQL commands


\
? for help with psql commands


\
g or terminate with semicolon to execute query


\
q to quit


template1=# ALTER USER postgres WITH PASSWORD '123_koffie!'

template1
-
# ;

ALTER ROLE

template1=#
\
q

postgres@karol
-
ubuntu:/h
ome/karol$ exit

exit

root@karol
-
ubuntu:/home/karol#

root@karol
-
ubuntu:/home/karol#

root@karol
-
ubuntu:/home/karol# cp
/home/karol/environment/server_admins/PostgreSQL82_JDBC_Driver/postgresql
-
jdbc
-
8.2.504.jar /var/lib/tomcat5.5/

conf/ logs/ shared/

temp/ webapps/ work/

root@karol
-
ubuntu:/home/karol# cp
/home/karol/environment/server_admins/PostgreSQL82_JDBC_Driver/postgresql
-
jdbc
-
8.2.504.jar /usr/share/tomcat5.5/

bin/ conf/ logs/ shared/ webapps/

common/ doc/ server/ temp/

work/

root@karol
-
ubuntu:/home/karol# cp
/home/karol/environment/server_admins/PostgreSQL82_JDBC_Driver/postgresql
-
jdbc
-
8.2.504.jar /usr/share/tomcat5.5/server/

classes/ lib/

root@karol
-
ubuntu:/home/karol# cp
/home/karol/environment/server_admins
/PostgreSQL82_JDBC_Driver/postgresql
-
jdbc
-
8.2.504.jar /usr/share/tomcat5.5/server/lib/

root@karol
-
ubuntu:/home/karol# ls
-
l /usr/share/tomcat5.5/server/lib/

total 2268

-
rw
-
r
--
r
--

1 root root 26632 2007
-
10
-
09 22:18 catalina
-
ant.jar

-
rw
-
r
--
r
--

1 root root
23730 2007
-
10
-
09 22:18 catalina
-
ant
-
jmx.jar

-
rw
-
r
--
r
--

1 root root 229657 2007
-
10
-
09 22:18 catalina
-
cluster.jar

-
rw
-
r
--
r
--

1 root root 659369 2007
-
10
-
09 22:18 catalina.jar

-
rw
-
r
--
r
--

1 root root 122131 2007
-
10
-
09 22:18 catalina
-
optional.jar

-
rw
-
r
--
r
--

1 ro
ot root 60242 2007
-
10
-
09 22:18 catalina
-
storeconfig.jar

lrwxrwxrwx 1 root root 33 2008
-
01
-
22 16:14 commons
-
modeler.jar
-
>
../../../java/commons
-
modeler.jar

-
rwx
------

1 root root 412476 2008
-
01
-
23 09:44 postgresql
-
jdbc
-
8.2.504.jar

-
rw
-
r
--
r
--

1 root ro
ot 20866 2007
-
10
-
09 22:18 servlets
-
cgi.renametojar

-
rw
-
r
--
r
--

1 root root 19374 2007
-
10
-
09 22:18 servlets
-
default.jar

-
rw
-
r
--
r
--

1 root root 6265 2007
-
10
-
09 22:18 servlets
-
invoker.jar

-
rw
-
r
--
r
--

1 root root 53330 2007
-
10
-
09 22:18 servlets
-
ssi.renameto
jar

-
rw
-
r
--
r
--

1 root root 23645 2007
-
10
-
09 22:18 servlets
-
webdav.jar

-
rw
-
r
--
r
--

1 root root 169862 2007
-
10
-
09 22:18 tomcat
-
ajp.jar

-
rw
-
r
--
r
--

1 root root 25264 2007
-
10
-
09 22:18 tomcat
-
apr.jar

-
rw
-
r
--
r
--

1 root root 19507 2007
-
10
-
09 22:18 tomcat
-
coyote.
jar

-
rw
-
r
--
r
--

1 root root 90288 2007
-
10
-
09 22:18 tomcat
-
http.jar

-
rw
-
r
--
r
--

1 root root 30910 2007
-
10
-
09 22:18 tomcat
-
jkstatus
-
ant.jar

-
rw
-
r
--
r
--

1 root root 255201 2007
-
10
-
09 22:18 tomcat
-
util.jar

root@karol
-
ubuntu:/home/karol# chmod 644
/usr/share/tom
cat5.5/server/lib/postgresql
-
jdbc
-
8.2.504.jar

root@karol
-
ubuntu:/home/karol# ls
-
l
/usr/share/tomcat5.5/server/lib/total 2268

bossprettying_387f8cdd
-
450e
-
4cce
-
a272
-
c86566f0b40f.doc

Pagina
3

van

4

DeployManual OPUS
-
Collegge


-
rw
-
r
--
r
--

1 root root 26632 2007
-
10
-
09 22:18 catalina
-
ant.jar

-
rw
-
r
--
r
--

1 root root 23730 2007
-
10
-
09 22:18 catalina
-
ant
-
jmx.j
ar

-
rw
-
r
--
r
--

1 root root 229657 2007
-
10
-
09 22:18 catalina
-
cluster.jar

-
rw
-
r
--
r
--

1 root root 659369 2007
-
10
-
09 22:18 catalina.jar

-
rw
-
r
--
r
--

1 root root 122131 2007
-
10
-
09 22:18 catalina
-
optional.jar

-
rw
-
r
--
r
--

1 root root 60242 2007
-
10
-
09 22:18 catalina
-
storeconfig.jar

lrwxrwxrwx 1 root root 33 2008
-
01
-
22 16:14 commons
-
modeler.jar
-
>
../../../java/commons
-
modeler.jar

-
rw
-
r
--
r
--

1 root root 412476 2008
-
01
-
23 09:44 postgresql
-
jdbc
-
8.2.504.jar

-
rw
-
r
--
r
--

1 root root 20866 2007
-
10
-
09 22:18 servlets
-
cgi.r
enametojar

-
rw
-
r
--
r
--

1 root root 19374 2007
-
10
-
09 22:18 servlets
-
default.jar

-
rw
-
r
--
r
--

1 root root 6265 2007
-
10
-
09 22:18 servlets
-
invoker.jar

-
rw
-
r
--
r
--

1 root root 53330 2007
-
10
-
09 22:18 servlets
-
ssi.renametojar

-
rw
-
r
--
r
--

1 root root 23645 2007
-
10
-
09 22:18 servlets
-
webdav.jar

-
rw
-
r
--
r
--

1 root root 169862 2007
-
10
-
09 22:18 tomcat
-
ajp.jar

-
rw
-
r
--
r
--

1 root root 25264 2007
-
10
-
09 22:18 tomcat
-
apr.jar

-
rw
-
r
--
r
--

1 root root 19507 2007
-
10
-
09 22:18 tomcat
-
coyote.jar

-
rw
-
r
--
r
--

1 root root 90288 2007
-
10
-
09 22:18 tomcat
-
http.jar

-
rw
-
r
--
r
--

1 root root 30910 2007
-
10
-
09 22:18 tomcat
-
jkstatus
-
ant.jar

-
rw
-
r
--
r
--

1 root root 255201 2007
-
10
-
09 22:18 tomcat
-
util.jar

root@karol
-
ubuntu:/home/karol# cp
/home/karol/environment/server_admins/application/V1.0/localho
st/opusColl
ege.war /usr/share/tomcat5.5/webapps/

root@karol
-
ubuntu:/home/karol# ls
-
l /usr/share/tomcat5.5/webapps/

total 11780

-
rwx
------

1 root root 12044848 2008
-
01
-
23 09:47 opusCollege.war

root@karol
-
ubuntu:/home/karol# ls
-
l /usr/share/tomcat5.5/webap
ps/

total 11780

-
rwx
------

1 root root 12044848 2008
-
01
-
23 09:47 opusCollege.war

root@karol
-
ubuntu:/home/karol# chmod 777
/usr/share/tomcat5.5/webapps/opusCollege.war

root@karol
-
ubuntu:/home/karol# ls
-
l /usr/share/tomcat5.5/webapps/total
11780

-
rwxrwxrwx

1 root root 12044848 2008
-
01
-
23 09:47 opusCollege.war

root@karol
-
ubuntu:/home/karol# /etc/init.d/tomcat5.5 restart


* Stopping Tomcat servlet engine tomcat5.5
[ OK ]


* Starting Tomcat servlet engine tomcat5.5

[ OK ]

root@karol
-
ubuntu:/home/karol# cat /var/log/tomcat5.5/

admin.2008
-
01
-
22.log host
-
manager.2008
-
01
-
23.log

admin.2008
-
01
-
23.log localhost.2008
-
01
-
22.log

catalina.2008
-
01
-
22.log localhost.2008
-
01
-
23.log

catalina.2008
-
01
-
23.log manager.2008
-
01
-
22.log

host
-
manager.2008
-
01
-
22.log manager.2008
-
01
-
23.log

root@karol
-
ubuntu:/home/karol# cat /var/log/tomcat5.5/catalina.2008
-
01
-
2

catalina.2008
-
01
-
22.log catalina.2008
-
01
-
23.log

root@karol
-
ubuntu:/home/karol# cat /var/lo
g/tomcat5.5/catalina.2008
-
01
-
23.log

Jan 23, 2008 9:07:17 AM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent

INFO: The Apache Tomcat Native library which allows optimal performance
in production environments was not found on the java.library.p
ath:

Jan 23, 2008 9:07:18 AM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http
-
8180

Jan 23, 2008 9:07:18 AM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 2226 ms

Jan 23, 2008 9:07:18
AM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Jan 23, 2008 9:07:18 AM org.apache.catalina.core.StandardEngine start

bossprettying_387f8cdd
-
450e
-
4cce
-
a272
-
c86566f0b40f.doc

Pagina
4

van

4

DeployManual OPUS
-
Collegge


INFO: Starting Servlet Engine: Apache Tomcat/5.5

Jan 23, 2008 9:07:18 AM org.apache.catalina.core.Standa
rdHost start

INFO: XML validation disabled

Jan 23, 2008 9:07:18 AM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http
-
8180

Jan 23, 2008 9:07:19 AM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0
.0.0.0:8009

Jan 23, 2008 9:07:19 AM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/110 config=null

Jan 23, 2008 9:07:19 AM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server
-
registry.xml at classpath resource

Jan 2
3, 2008 9:07:19 AM org.apache.catalina.startup.Catalina start

INFO: Server startup in 726 ms

Jan 23, 2008 9:47:29 AM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive opusCollege.war

Jan 23, 2008 9:47:29 AM org.apache
.catalina.startup.ContextConfig init

[...]

INFO: Jk running ID=0 time=0/99 config=null

Jan 23, 2008 9:48:31 AM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server
-
registry.xml at classpath resource

Jan 23, 2008 9:48:32 AM org.apach
e.catalina.startup.Catalina start

INFO: Server startup in 5315 ms


root@karol
-
ubuntu:/home/karol#

root@karol
-
ubuntu:/home/karol#

root@karol
-
ubuntu:/home/karol# vi /etc/init.d/tomcat5.5

root@karol
-
ubuntu:/home/karol# vi /etc/init.d/tomcat5.5

root@karol
-
ubuntu:/home/karol# /etc/init.d/tomcat5.5 restart * Stopping
Tomcat servlet engine tomcat5.5 [ OK ]


* Starting Tomcat servlet engine tomcat5.5
[ OK ]

root@karol
-
ubuntu:/home/karol#