Cache&Content Server: Unterschied zwischen den Versionen

Aus MeinWiki
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „# Vorarbeiten vi /etc/fstab /dev/sdc1 /sapdb ext3 acl,user_xattr 1 1 /dev/sdd1 /usr/users ext3…“)
 
Zeile 44: Zeile 44:
 
# Test
 
# Test
 
Cache
 
Cache
http://server1:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2
+
http://server1:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2
http://server2:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2
+
http://server2:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2
 
Content
 
Content
http://server1:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
+
http://server1:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
http://server2:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
+
http://server2:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
  
 
#Startscript
 
#Startscript
 
<code>
 
<code>
 
httpd
 
httpd
#!/bin/sh
+
#!/bin/sh
### BEGIN INIT INFO
+
### BEGIN INIT INFO
# Provides:          apache2
+
# Provides:          apache2
# Required-Start:    $all
+
# Required-Start:    $all
# Required-Stop:    $all
+
# Required-Stop:    $all
# Default-Start:    2 3 4 5
+
# Default-Start:    2 3 4 5
# Default-Stop:      0 1 6
+
# Default-Stop:      0 1 6
# Short-Description: apache2
+
# Short-Description: apache2
# Description: Start apache2
+
# Description: Start apache2
### END INIT INFO
+
### END INIT INFO
  
case "$1" in
+
case "$1" in
start)
+
start)
 
         echo "Starting Apache ..."
 
         echo "Starting Apache ..."
 
         # Change the location to your specific location
 
         # Change the location to your specific location
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
;;
+
;;
stop)
+
stop)
 
         echo "Stopping Apache ..."
 
         echo "Stopping Apache ..."
 
         # Change the location to your specific location
 
         # Change the location to your specific location
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
;;
+
;;
graceful)
+
graceful)
 
         echo "Restarting Apache gracefully..."
 
         echo "Restarting Apache gracefully..."
 
         # Change the location to your specific location
 
         # Change the location to your specific location
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
;;
+
;;
restart)
+
restart)
 
         echo "Restarting Apache ..."
 
         echo "Restarting Apache ..."
 
         # Change the location to your specific location
 
         # Change the location to your specific location
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
         su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
 
su - sapcsc  -c '/usr/users/sapcsc/bin/httpd -k '$1
;;
+
;;
*)
+
*)
 
         echo "Usage: '$0' {start|stop|restart|graceful}"
 
         echo "Usage: '$0' {start|stop|restart|graceful}"
 
         exit 64
 
         exit 64
;;
+
;;
esac
+
esac
exit 0
+
exit 0
 
</code>
 
</code>

Version vom 9. Juli 2015, 10:03 Uhr

  1. Vorarbeiten
vi /etc/fstab
/dev/sdc1            /sapdb           ext3       acl,user_xattr        1 1
/dev/sdd1            /usr/users           ext3       acl,user_xattr        1 1
/dev/sde1            /sapinstall          ext3       acl,user_xattr        1 1
mkdir /sapdb
mkdir /usr/users
vi /etc/fstab
mount /sapdb/
mount /usr/users/
mkdir /sapinstall
groupadd -g 1001 sapsys
groupadd -g 1002 sapinst
useradd -g 1001 -u 1101 -d /usr/users/sapcs sapcs
useradd -g 1001 -u 1102 -d /usr/users/sapcsc sapcsc
mkdir /usr/users/sapcs
mkdir /usr/users/sapcsc
chown sapcs:sapsys /usr/users/sapcs
chown sapcsc:sapsys /usr/users/sapcsc
chmod 2770 /usr/users/sapcsc
chmod 2770 /usr/users/sapcs
chmod 2770 /sapdb/
chgrp sapsys /sapdb/
cd /sapinstall/
ls
tar -C http_content/ -xzvf httpd-2.2.29.tar.gz
cd /sapinstall/
tar -C http_content/ -xzvf httpd-2.2.29.tar.gz
cd http_content/httpd-2.2.29/
./configure --prefix=/usr/users/sapcs/ --enable-mods-shared=most --with-mpm=prefork --with-expat=builtin
make
make install
./configure --prefix=/usr/users/sapcsc/ --enable-mods-shared=most --with-mpm=prefork --with-expat=builtin
make
make install
cd /usr/users/sapcs/bin/
./apachectl start
ln -s libpng12.so.0.31.0 libpng.so.3
  1. Test

Cache

http://server1:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2
http://server2:1095/Cache/CSProxyCache.dll?adminCache&operation=statGet2

Content

http://server1:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
http://server2:1090/ContentServer/ContentServer.dll?adminContRep&operation=statGet2
  1. Startscript

httpd

#!/bin/sh
### BEGIN INIT INFO
# Provides:          apache2
# Required-Start:    $all
# Required-Stop:     $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: apache2
# Description: Start apache2
### END INIT INFO
case "$1" in
start)
       echo "Starting Apache ..."
       # Change the location to your specific location
       su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1

su - sapcsc -c '/usr/users/sapcsc/bin/httpd -k '$1

;;
stop)
       echo "Stopping Apache ..."
       # Change the location to your specific location
       su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1

su - sapcsc -c '/usr/users/sapcsc/bin/httpd -k '$1

;;
graceful)
       echo "Restarting Apache gracefully..."
       # Change the location to your specific location
       su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1

su - sapcsc -c '/usr/users/sapcsc/bin/httpd -k '$1

;;
restart)
       echo "Restarting Apache ..."
       # Change the location to your specific location
       su - sapcs  -c '/usr/users/sapcs/bin/httpd -k '$1

su - sapcsc -c '/usr/users/sapcsc/bin/httpd -k '$1

;;
*)
       echo "Usage: '$0' {start|stop|restart|graceful}"
       exit 64
;;
esac
exit 0