RaspberryPi3B: Difference between revisions
(→JBoss) |
|||
| Line 37: | Line 37: | ||
* copy wildfly-11.0.0.Final.zip to /wildfly | * copy wildfly-11.0.0.Final.zip to /wildfly | ||
* unzip | * unzip | ||
* enable remote access to Wildfly by editing /wildfly/wildfly-11.0.0.Final/standalone/configuration/standalone and replace | |||
<interface name="management"> | |||
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/> | |||
</interface> | |||
<interface name="public"> | |||
<inet-address value="${jboss.bind.address:0.0.0.0}"/> | |||
</interface> | |||
with | |||
<interface name="management"> | |||
<any-address/> | |||
</interface> | |||
<interface name="public"> | |||
<any-address/> | |||
</interface> | |||
* cd /wildfly/wildfly-11.0.0.Final/bin | * cd /wildfly/wildfly-11.0.0.Final/bin | ||
* start server by | * start server by | ||
Revision as of 22:03, 10 November 2017
Configuration
- 192.168.178.34 for WLAN
- 192.168.178.35 for LAN
- SSH credentials (e.g. for WinSCP or Putty) user=pi pwd=raspberry for both IP
Software
Apache
- installed by
sudo apt-get install apache2 chmod 777 /var/www/html
- restart
sudo /etc/init.d/apache2 restart
MySQL
- install by
sudo apt-get install mysql-server php5-mysql mysql-client root root
PHPMyAdmin
- installed by
apt-get install phpmyadmin root
- add to /etc/apache2/apache2.conf at the end (marked by UH)
Include /etc/phpmyadmin/apache.conf
- restart apache
UweHeuer
- create database mysql505 with PHPMyAdmin
- export and import database
- create /wildfly/wildfly-11.0.0.Final/standalone/data/uweheuer
- copy abc.tmp and /wildfly/wildfly-11.0.0.Final/standalone/data
- download mysql-connector-java-5.1.44-bin.jar from MySQL site
Wildfly
- create /wildfly directory and chmod 777
- copy wildfly-11.0.0.Final.zip to /wildfly
- unzip
- enable remote access to Wildfly by editing /wildfly/wildfly-11.0.0.Final/standalone/configuration/standalone and replace
<interface name="management">
<inet-address value="${jboss.bind.address.management:127.0.0.1}"/>
</interface>
<interface name="public">
<inet-address value="${jboss.bind.address:0.0.0.0}"/>
</interface>
with
<interface name="management">
<any-address/>
</interface>
<interface name="public">
<any-address/>
</interface>
- cd /wildfly/wildfly-11.0.0.Final/bin
- start server by
./standalone.sh &
- stop server by
./jboss-cli.sh --connect command=:shutdown
- restart server by
./jboss-cli.sh --connect command=:reload
Operation
Reboot
sudo reboot
Shutdown
sudo shutdown -h 0
Update
sudo apt-get update