Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #yum install httpd
- #systemctl start httpd
- #yum install java-1.7.0-openjdk
- #groupadd tomcat
- #useradd -M -s /bin/nologin -g tomcat -d /opt/tomcat tomcat
- #cd /home/gerben/Downloads
- #wget http://mirrors.supportex.net/apache/tomcat/tomcat-8/v8.5.5/bin/apache-tomcat-8.5.5.tar.gz
- #mkdir /opt/tomcat
- #tar xvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1
- #cd /opt/tomcat
- #chgrp -R tomcat conf
- #chmod g+rwx conf
- #chmod g+r conf/
- #chown -R tomcat webapps/
- #chown -R work/
- #chown -R temp/
- #chown -R logs/
- #cd /opt && sudo chown -R tomcat tomcat/
- #nano /etc/systemd/system/tomcat.service
- PLAK ONDERSTAANDE TEKST IN DIT BESTAND EN SLA HET BESTAND OP
- # Systemd unit file for tomcat
- [Unit]
- Description=Apache Tomcat Web Application Container
- After=syslog.target network.target
- [Service]
- Type=forking
- Environment=JAVA_HOME=/usr/lib/jvm/jre
- Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
- Environment=CATALINA_HOME=/opt/tomcat
- Environment=CATALINA_BASE=/opt/tomcat
- #Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
- Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
- ExecStart=/opt/tomcat/bin/startup.sh
- ExecStop=/bin/kill -15 $MAINPID
- User=tomcat
- Group=tomcat
- [Install]
- WantedBy=multi-user.target
- HIERONDER GAAN WE VERDER IN HET TERMINAL VENSTER
- #systemctl daemon-reload
- #cd /home/gerben/Downloads
- #wget http://cdn3.sysaid.com/sysaid-server-linux-free.tar.gz
- #cd
- #tar xzf sysaid-server-linux-free.tar.gz
- #ls
- sysaid-server-linux sysaid-server-linux-free.tar.gz
- #cd sysaid-server-linux
- #ls
- CREDITS init-sysaid.sh INSTALL.txt LICENSE.txt README.txt sysaid.war
- #systemctl stop tomcat
- #rm -fr /opt/tomcat/webapps/ROOT/
- #cp sysaid_free.war /opt/tomcat/webapps/ROOT.war
- #yum update
- #cd /home/gerben/Downloads
- #wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
- #rpm -ivh mysql-community-release-el7-5.noarch.rpm
- #yum update
- #yum install mysql-server
- #systemctl start mysqld
- #mysql -p
- Enter password:
- mysql> create database helpdesk;
- Query OK, 1 row affected (0.01 sec)
- mysql> CREATE USER 'gerben'@'localhost' IDENTIFIED BY 'toor';
- Query OK, 0 rows affected (0.04 sec)
- mysql> grant all privileges on helpdesk.* to gerben@localhost;
- Query OK, 0 rows affected (0.00 sec)
- mysql> quit
- Bye
- #cd sysaid-server-linux
- #chmod +x init-sysaid.sh
- #./init-sysaid.sh /opt/tomcat/webapps/ROOT
- Welcome to the SysAid initialization script!
- This script will configure the database connection and initialize the database.
- Please enter the host name or IP address of the MySQL server [localhost]:
- Please enter the database name that should contain the SysAid data
- (please create an empty database with this name) [ilient]:
- helpdesk
- Please enter the database login user name [mysql]:
- gerben
- Please enter the database login password [mysql]:
- toor
- Please confirm your input:
- Host name: localhost
- Database name: helpdesk
- Database user name: gerben
- Database password: toor
- Would you like to proceed (y/n) ?
- y
- Would you like to check connection (y/n) ?
- y
- Checking connection....
- Connection verified.
- Validating license .....
- License verified. Account ID is free. Serial is 770CAFF2ABC62952
- Please choose a main user name. Use this login for your first login into SysAid [sysaid]:
- sysaid
- Please choose the password of the sysaid login [changeit]:
- Initializing database....
- Initialization complete! Please restart the web application server (Tomcat).
- Welcome to SysAid!
- #systemctl stop tomcat
- #systemctl start tomcat
- open firefox
- typ in de adresbalk: localhost:8080
- duurt even maar dan zie je het inlogscherm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement