27.12.2020 Maintenance
Linux#
Get Version => Debian GNU/Linux 10.7 (buster)#
cat /etc/debian_version
10.7
cat /etc/issue
Debian GNU/Linux 10
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
hostnamectl
Static hostname: v22018061954267647
Icon name: computer-vm
Chassis: vm
Machine ID: [..]
Boot ID: [..]
Virtualization: kvm
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-13-amd64
Architecture: x86-64
Note: apt-get install lsb-release
Update / Upgrade#
To update current version see Apt.To upgrade to a new Linux version, you need to change the source for packages and run an update like before.
vi /etc/apt/sources.list
deb http://ftp.debian.org/debian/ buster main
Note: check additional sources specified wihtin folder sources.list.d
MySQL / MariaDB#
Get version => 10.3.27-MariaDB-0+deb10u1#
mysql -u <user> -p select version();
Upgrade / Storage#
After upgrading from Debian 9 to 10, mysql was gone. I installed MariaDB on top:
apt-get install mariadb-server
(mysql_secure_installation)
Start: /etc/init.d/mysql
Config: folder /etc/mysql/...
Log: /var/log/mysql
Bin:
/usr/bin/mysql
/usr/bin/mysqladmin
/usr/sbin/mysqld
Database: folder /var/lib/mysql
Apache Tomee => TomEE webprofile 8.0.5 (Tomcat 9.0.39)#
Get Version#
Not possible, it is TomEE webprofile 8.0.5 TAR/GZ
.You can get the tomcat version:
cd <tomee_home>/lib java -cp catalina.jar org.apache.catalina.util.ServerInfo Server version: Apache Tomcat/9.0.39 Server built: Oct 6 2020 14:11:46 UTC Server number: 9.0.39.0 OS Name: Linux OS Version: 4.19.0-13-amd64 Architecture: amd64 JVM Version: 11.0.9.1+1-post-Debian-1deb10u2 JVM Vendor: Debian
Upgrade / Storage#
See TomEE, upgrade via new installation/move old content.Download
TomEE webprofile TAR/GZ and tar xvf *
Enable Apache HTTP with TomcatNote: NEW attribute address and secretRequired necessary !!!
vi <tomee_home>/conf/server.xml
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" address="::1" protocol="AJP/1.3" redirectPort="8443" secretRequired="false" />
<Connector port="8109" address="::1" protocol="AJP/1.3" redirectPort="8443" secretRequired="false" />
Improve start script
vi <tomee_home>/bin/catalina.sh #Markus JAVA_OPTS="$JAVA_OPTS -server -Xms1024m -Xmx6144m -Djava.awt.headless=true -Dfile.encoding=UTF-8" JAVA_HOME=/usr/lib/jvm/default-java
/etc/init.d/tomee restart
Webapps#
Copy <tomee_home>/webapps- EbelHome
- Homepage
- JSPWiki