# vmpaler
ここからもVmware Toolsがダウンロードできた。
http://softwareupdate.vmware.com/cds/vmw-desktop/play
#!/bin/bash # # Startup script for the Tomcat Servlet Container # # chkconfig: 2345 35 65 # description: Tomcat is the servlet container that is used in the official \ # Reference Implementation for the Java Servlet and JavaServer \ # Pages technologies TOMCAT_USER=tomcat CATALINA_HOME=/usr/local/tomcat . /etc/rc.d/init.d/functions prog=tomcat start() { echo -n $"Starting $prog: " daemon --user $TOMCAT_USER $CATALINA_HOME/bin/startup.sh > /dev/null RETVAL=$? if [ $RETVAL -eq 0 ]; then echo_success else echo_failure fi echo [ $RETVAL = 0 ] && touch /var/lock/subsys/$prog return $RETVAL } stop() { echo -n $"Stopping $prog: " daemon --user $TOMCAT_USER $CATALINA_HOME/bin/shutdown.sh > /dev/null RETVAL=$? if [ $RETVAL -eq 0 ]; then echo_success else echo_failure fi echo [ $RETVAL = 0 ] && rm -f /var/lock/subsys/$prog return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) stop start ;; status) INSTANCES=`ps --columns 512 -aef|grep java|grep tomcat|grep org.apache.catalina.startup.Bootstrap|wc -l` if [ $INSTANCES -eq 0 ]; then echo $prog is stopped RETVAL=3 else if [ $INSTANCES -eq 1 ]; then echo $prog is running 1 instance... else echo $prog is running $INSTANCES instances... fi RETVAL=0 fi ;; *) echo $"Usage: $prog {start|stop|restart|status|help}" exit 1 esac exit $RETVAL
chmod a+x /etc/init.d/tomcat
/sbin/chkconfig --add tomcat
/etc/init.d/tomcat start
chkconfig httpd onchkconfig tomcat onchkconfig --list
(3) Tomcat コネクタの設定
vi /usr/local/tomcat/conf/server.xml
【8080ポート無効】
<!-- <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /> by takahab -->
【8009ポート有効】
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
【tomcatに渡すロケーションを設定】
# vi /etc/httpd/conf/httpd.conf
ーーーファイルの最後に追加
# by takahab Include /etc/httpd/conf/extra/httpd-proxy.conf
vi /etc/httpd/conf/extra/httpd-proxy.conf ------新規ファイル作成<Location / >
※servlet以下であれば、<Location /servlet > 上記はルート
マップするディレクトリが異なる時。
<Location /servlet/> ProxyPass ajp://localhost:8009/ keepalive=on ProxyPassReverse ajp://localhost:8009/ ProxyPassReverseCookiePath / /servlet/ </Location>
# yum -y install mysql-server
# /etc/init.d/mysqld start # chkconfig mysqld on # chkconfig --list mysqld
【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...