27.12.2020 Maintenance
Inhaltsverzeichnis
- Linux
- Get Version => Debian GNU/Linux 10.7 (buster)
- Update / Upgrade
- MySQL / MariaDB
- Get version => 10.3.27-MariaDB-0+deb10u1
- Upgrade / Storage
- Java
- Get version => OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
- Storage
- Apache Tomee
- Get Version => TomEE webprofile 8.0.5 (Tomcat 9.0.39)
- Upgrade / Storage
- Webapps
- vi configuration
- Seafile Cloud
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
Java#
Get version => OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)#
java -version
openjdk version "11.0.9.1" 2020-11-04
OpenJDK Runtime Environment (build 11.0.9.1+1-post-Debian-1deb10u2)
OpenJDK 64-Bit Server VM (build 11.0.9.1+1-post-Debian-1deb10u2, mixed mode, sharing)
Storage#
which java
/usr/bin/java -> /etc/alternatives/java -> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
/usr/lib/jvm/default-java -> /usr/lib/jvm/java-1.11.0-openjdk-amd64 -> /usr/lib/jvm/java-11-openjdk-amd64
JAVA_HOME=/usr/lib/jvm/default-java
Apache Tomee#
Get Version => TomEE webprofile 8.0.5 (Tomcat 9.0.39)#
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-javaCreate Symlink
ln -s /markus/apache-tomee-webprofile-8.0.5 /markus/tomee
/etc/init.d/tomee restart
Webapps#
Copy <tomee_home>/webapps- EbelHome
- Homepage
cp mariadb-java-client-2.7.1.jar <tomeeHome>/lib
log4j ?
vi <tomeeHome>/lib/jspwiki-custom.properties
jspwiki.applicationName=inetone
jspwiki.fileSystemProvider.pageDir=/markus/jspWikiData
jspwiki.workDir=/markus/tomee/temp
jspwiki.basicAttachmentProvider.storageDir=/markus/jspWikiData
jspwiki.pageProvider=VersioningFileProvider
#jspwiki.searchProvider=LuceneSearchProvider
jspwiki.searchProvider=BasicSearchProvider
vi configuration#
Disable visual mode but keep syntax highlighting
vi ~/.vimrc
set mouse-=a
syntax on