Advertisement
Guest User

Untitled

a guest
Sep 30th, 2016
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. #yum install httpd
  2. #systemctl start httpd
  3. #yum install java-1.7.0-openjdk
  4. #groupadd tomcat
  5. #useradd -M -s /bin/nologin -g tomcat -d /opt/tomcat tomcat
  6. #cd /home/gerben/Downloads
  7. #wget http://mirrors.supportex.net/apache/tomcat/tomcat-8/v8.5.5/bin/apache-tomcat-8.5.5.tar.gz
  8. #mkdir /opt/tomcat
  9. #tar xvf apache-tomcat-8*tar.gz -C /opt/tomcat --strip-components=1
  10. #cd /opt/tomcat
  11. #chgrp -R tomcat conf
  12. #chmod g+rwx conf
  13. #chmod g+r conf/
  14. #chown -R tomcat webapps/
  15. #chown -R work/
  16. #chown -R temp/
  17. #chown -R logs/
  18. #cd /opt && sudo chown -R tomcat tomcat/
  19. #nano /etc/systemd/system/tomcat.service
  20.  
  21. PLAK ONDERSTAANDE TEKST IN DIT BESTAND EN SLA HET BESTAND OP
  22.  
  23. # Systemd unit file for tomcat
  24. [Unit]
  25. Description=Apache Tomcat Web Application Container
  26. After=syslog.target network.target
  27.  
  28. [Service]
  29. Type=forking
  30.  
  31. Environment=JAVA_HOME=/usr/lib/jvm/jre
  32. Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
  33. Environment=CATALINA_HOME=/opt/tomcat
  34. Environment=CATALINA_BASE=/opt/tomcat
  35. #Environment='CATALINA_OPTS=-Xms512M -Xmx1024M -server -XX:+UseParallelGC'
  36. Environment='JAVA_OPTS=-Djava.awt.headless=true -Djava.security.egd=file:/dev/./urandom'
  37.  
  38. ExecStart=/opt/tomcat/bin/startup.sh
  39. ExecStop=/bin/kill -15 $MAINPID
  40.  
  41. User=tomcat
  42. Group=tomcat
  43.  
  44. [Install]
  45. WantedBy=multi-user.target
  46.  
  47.  
  48. HIERONDER GAAN WE VERDER IN HET TERMINAL VENSTER
  49. #systemctl daemon-reload
  50. #cd /home/gerben/Downloads
  51. #wget http://cdn3.sysaid.com/sysaid-server-linux-free.tar.gz
  52. #cd
  53. #tar xzf sysaid-server-linux-free.tar.gz
  54. #ls
  55. sysaid-server-linux sysaid-server-linux-free.tar.gz
  56. #cd sysaid-server-linux
  57. #ls
  58. CREDITS init-sysaid.sh INSTALL.txt LICENSE.txt README.txt sysaid.war
  59. #systemctl stop tomcat
  60. #rm -fr /opt/tomcat/webapps/ROOT/
  61. #cp sysaid_free.war /opt/tomcat/webapps/ROOT.war
  62.  
  63.  
  64. #yum update
  65. #cd /home/gerben/Downloads
  66. #wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
  67. #rpm -ivh mysql-community-release-el7-5.noarch.rpm
  68. #yum update
  69. #yum install mysql-server
  70. #systemctl start mysqld
  71.  
  72.  
  73. #mysql -p
  74. Enter password:
  75. mysql> create database helpdesk;
  76. Query OK, 1 row affected (0.01 sec)
  77.  
  78. mysql> CREATE USER 'gerben'@'localhost' IDENTIFIED BY 'toor';
  79. Query OK, 0 rows affected (0.04 sec)
  80.  
  81. mysql> grant all privileges on helpdesk.* to gerben@localhost;
  82. Query OK, 0 rows affected (0.00 sec)
  83.  
  84. mysql> quit
  85. Bye
  86.  
  87.  
  88. #cd sysaid-server-linux
  89. #chmod +x init-sysaid.sh
  90. #./init-sysaid.sh /opt/tomcat/webapps/ROOT
  91.  
  92. Welcome to the SysAid initialization script!
  93. This script will configure the database connection and initialize the database.
  94. Please enter the host name or IP address of the MySQL server [localhost]:
  95.  
  96. Please enter the database name that should contain the SysAid data
  97. (please create an empty database with this name) [ilient]:
  98. helpdesk
  99. Please enter the database login user name [mysql]:
  100. gerben
  101. Please enter the database login password [mysql]:
  102. toor
  103. Please confirm your input:
  104. Host name: localhost
  105. Database name: helpdesk
  106. Database user name: gerben
  107. Database password: toor
  108. Would you like to proceed (y/n) ?
  109. y
  110. Would you like to check connection (y/n) ?
  111. y
  112. Checking connection....
  113. Connection verified.
  114. Validating license .....
  115. License verified. Account ID is free. Serial is 770CAFF2ABC62952
  116. Please choose a main user name. Use this login for your first login into SysAid [sysaid]:
  117. sysaid
  118. Please choose the password of the sysaid login [changeit]:
  119.  
  120. Initializing database....
  121. Initialization complete! Please restart the web application server (Tomcat).
  122. Welcome to SysAid!
  123.  
  124. #systemctl stop tomcat
  125. #systemctl start tomcat
  126.  
  127. open firefox
  128. typ in de adresbalk: localhost:8080
  129.  
  130. duurt even maar dan zie je het inlogscherm
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement