よしかわーるど

プログラミングで世界を変える

2018-05-13

サークルにknowledgeを導入しました

knowledgeを導入しました knowledgeを導入したので、ここに殴り書き程度に記しておきます。 Java8、Tomcat、Apache、PostgreSQLというベースで構築しました。 LDAP連携できる良い共有ツールはないのか検討中です… sudo yum -y install java-1.8.0-openjdk-devel wget httpd firewall-cmd --permanent --zone=public --add-service=http useradd -s /sbin/nologin tomcat mkdir tomcat cd tomcat wget http://ftp.kddilabs.jp/infosystems/apache/tomcat/tomcat-9/v9.0.5/bin/apache-tomcat-9.0.5.tar.gz tar -xzvf apache-tomcat-9.0.5.tar.gz mv apache-tomcat-9.0.5 /usr/local/tomcat chown -R tomcat:tomcat /usr/local/tomcat vim /etc/systemd/system/tomcat.service [Unit] Description=Apache Tomcat 9 After=syslog.target network.target [Service] User=tomcat Group=tomcat Type=oneshot PIDFile=/usr/local/tomcat/tomcat.pid RemainAfterExit=yes ExecStart=/usr/local/tomcat/bin/startup.sh ExecStop=/usr/local/tomcat/bin/shutdown.sh ExecReStart=/usr/local/tomcat/bin/shutdown.sh;/usr/local/tomcat/bin/startup.sh [Install] WantedBy=multi-user.target chmod 755 /etc/systemd/system/tomcat.service cd /usr/local/tomcat/webapps wget https://github.com/support-project/knowledge/releases/download/v1.12.0/knowledge.war vim /etc/httpd/conf.d/proxy-ajp.conf <Location /knowledge> ProxyPass ajp://localhost:8009/knowledge Order allow,deny Allow from all </Location> vim /usr/local/tomcat/conf/server.xml <!-- <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" ...