Skip to main content

Posts

Showing posts from June, 2020

Tomcat port and Apache redirection

This update briefly describes the installation of Tomcat and Apache.    Install and set up Tomcat   Reference:  Digital Ocean https://www.digitalocean.com/community/tutorials/install-tomcat-9-ubuntu-1804 Highly suggest moving to reference when install. It provides detailed description.      Install Java    Create Tomcat user on Linux sudo groupadd tomcat sudo useradd -s /bin/false -g tomcat -d /opt/tomcat tomcat     Download Tomcat  Tomcat download https://tomcat.apache.org/whichversion.html (I’m using Tomcat 9) wget -url-get-from-download-page-in-tar-gz- sudo mkdir /opt/tomcat sudo tar xzvf apache-tomcat-*tar.gz -C /opt/tomcat --strip-components=1   Update Permission cd /opt/tomcat sudo chmod -R g+r conf sudo chmod g+x conf sudo chown -R tomcat webapps/ work/ temp/ logs/   Create systemd service file (Ubuntu service) sudo update-java-alternatives -l It shows Java Home sudo vi /etc/systemd/system/tomcat.service Edit Environment=JAVA_HOME sudo systemctl daemon-reload sudo systemctl star

[update]Add web service

    Added REST API on Unity game, and created a Spring server to collect data and present it on a simple web page.          This version of web service is not on Azure yet. I was also testing JUnit and MSTest. Finally I complied to install IDE for Spring.... I have a very small hard disk, and already have Android Studio, Anaconda3 for Python, Visual Studio community, VS code, Unity, MySQL, OBS, Inkscape, Medi Bang Paint, Gimp, etc. Just unwilling to add another editor. I'm also supposed to install Decker....      Anyway, I installed Eclipse with STS support. And found it was difficult to test Unity functions related to position mappings, and nothing related to server needed testing. I tested time conversion and it would be much faster to create a main[]. The function I like in Duration is on Oracle Java 9..... not the public version, which Maven/Spring/Linux server uses, Java 8. Math makes things simple. I'm just lazy... 

[Update] Add UI to end a game

    I found without a proper UI, sectional conclusion would never be possible. It might be something like endless life. Vampires live forever and inevitably lose the sense of meaning. Similar stories were also depicted in Japanese comics. Some monsters do harm to others because of boring.       UI animation and Start/End game control were added in this version.     Also borrowed some pictures to match presentation with intention. "A reader with a cup of mike tea" hardly can relate to "a worker on station", although I like reading with coffee or milk tea aside.