Cache&Content Server: Unterschied zwischen den Versionen
Aus MeinWiki
Zeile 63: | Zeile 63: | ||
# Description: Start apache2 | # Description: Start apache2 | ||
### END INIT INFO | ### END INIT INFO | ||
− | + | ||
case "$1" in | case "$1" in | ||
start) | start) | ||
Zeile 69: | Zeile 69: | ||
# 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 | |
;; | ;; | ||
stop) | stop) | ||
Zeile 75: | Zeile 75: | ||
# 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 | |
;; | ;; | ||
graceful) | graceful) | ||
Zeile 81: | Zeile 81: | ||
# 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 | |
;; | ;; | ||
restart) | restart) | ||
Zeile 87: | Zeile 87: | ||
# 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 | |
;; | ;; | ||
*) | *) |
Aktuelle Version vom 9. Juli 2015, 10:05 Uhr
- 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
- 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
- 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