LINUX6.5 + MYSQL5.6 + JIRA6.3 + CONFLUENCE5.9

Posted ORACLE EBS

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LINUX6.5 + MYSQL5.6 + JIRA6.3 + CONFLUENCE5.9相关的知识,希望对你有一定的参考价值。

#================mysql=============================
   
[[email protected] Desktop]# /sbin/ifup eth0
[[email protected] Desktop]# service network restart

[[email protected] ~]# rpm -qa | grep mysql
mysql-libs-5.1.71-1.el6.x86_64
[[email protected] ~]# rpm -e --nodeps  mysql-libs-5.1.71-1.el6.x86_64

[[email protected] ~]# cd /usr/tmp/
[[email protected] tmp]# ll
total 221112
-rwsrwsrwt. 1 root root 226416640 May 21 07:51 MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
[[email protected] tmp]# tar xf MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
[[email protected] tmp]# rpm -ivh ./*.rpm
warning: ./MySQL-client-5.6.30-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
Preparing...                ########################################### [100%]
   1:MySQL-devel            ########################################### [ 14%]
   2:MySQL-client           ########################################### [ 29%]
   3:MySQL-test             ########################################### [ 43%]
   4:MySQL-embedded         ########################################### [ 57%]
   5:MySQL-shared-compat    ########################################### [ 71%]
   6:MySQL-shared           ########################################### [ 86%]
   7:MySQL-server           ########################################### [100%]
warning: user mysql does not exist - using root
warning: group mysql does not exist - using root
2016-05-21 08:15:05 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-05-21 08:15:05 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30) starting as process 2747 ...
2016-05-21 08:15:05 2747 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-21 08:15:05 2747 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-21 08:15:05 2747 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-21 08:15:05 2747 [Note] InnoDB: Memory barrier is not used
2016-05-21 08:15:05 2747 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-21 08:15:05 2747 [Note] InnoDB: Using Linux native AIO
2016-05-21 08:15:05 2747 [Note] InnoDB: Using CPU crc32 instructions
2016-05-21 08:15:05 2747 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-05-21 08:15:05 2747 [Note] InnoDB: Completed initialization of buffer pool
2016-05-21 08:15:05 2747 [Note] InnoDB: The first specified data file ./ibdata1 did not exist: a new database to be created!
2016-05-21 08:15:05 2747 [Note] InnoDB: Setting file ./ibdata1 size to 12 MB
2016-05-21 08:15:05 2747 [Note] InnoDB: Database physically writes the file full: wait...
2016-05-21 08:15:05 2747 [Note] InnoDB: Setting log file ./ib_logfile101 size to 48 MB
2016-05-21 08:15:05 2747 [Note] InnoDB: Setting log file ./ib_logfile1 size to 48 MB
2016-05-21 08:15:06 2747 [Note] InnoDB: Renaming log file ./ib_logfile101 to ./ib_logfile0
2016-05-21 08:15:06 2747 [Warning] InnoDB: New log files created, LSN=45781
2016-05-21 08:15:06 2747 [Note] InnoDB: Doublewrite buffer not found: creating new
2016-05-21 08:15:06 2747 [Note] InnoDB: Doublewrite buffer created
2016-05-21 08:15:06 2747 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-21 08:15:06 2747 [Warning] InnoDB: Creating foreign key constraint system tables.
2016-05-21 08:15:06 2747 [Note] InnoDB: Foreign key constraint system tables created
2016-05-21 08:15:06 2747 [Note] InnoDB: Creating tablespace and datafile system tables.
2016-05-21 08:15:06 2747 [Note] InnoDB: Tablespace and datafile system tables created.
2016-05-21 08:15:06 2747 [Note] InnoDB: Waiting for purge to start
2016-05-21 08:15:06 2747 [Note] InnoDB: 5.6.30 started; log sequence number 0
A random root password has been set. You will find it in ‘/root/.mysql_secret‘.
2016-05-21 08:15:06 2747 [Note] Binlog end
2016-05-21 08:15:06 2747 [Note] InnoDB: FTS optimize thread exiting.
2016-05-21 08:15:06 2747 [Note] InnoDB: Starting shutdown...
2016-05-21 08:15:08 2747 [Note] InnoDB: Shutdown completed; log sequence number 1625977


2016-05-21 08:15:08 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2016-05-21 08:15:08 0 [Note] /usr/sbin/mysqld (mysqld 5.6.30) starting as process 2769 ...
2016-05-21 08:15:08 2769 [Note] InnoDB: Using atomics to ref count buffer pool pages
2016-05-21 08:15:08 2769 [Note] InnoDB: The InnoDB memory heap is disabled
2016-05-21 08:15:08 2769 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2016-05-21 08:15:08 2769 [Note] InnoDB: Memory barrier is not used
2016-05-21 08:15:08 2769 [Note] InnoDB: Compressed tables use zlib 1.2.3
2016-05-21 08:15:08 2769 [Note] InnoDB: Using Linux native AIO
2016-05-21 08:15:08 2769 [Note] InnoDB: Using CPU crc32 instructions
2016-05-21 08:15:08 2769 [Note] InnoDB: Initializing buffer pool, size = 128.0M
2016-05-21 08:15:08 2769 [Note] InnoDB: Completed initialization of buffer pool
2016-05-21 08:15:08 2769 [Note] InnoDB: Highest supported file format is Barracuda.
2016-05-21 08:15:08 2769 [Note] InnoDB: 128 rollback segment(s) are active.
2016-05-21 08:15:08 2769 [Note] InnoDB: Waiting for purge to start
2016-05-21 08:15:08 2769 [Note] InnoDB: 5.6.30 started; log sequence number 1625977
2016-05-21 08:15:08 2769 [Note] Binlog end
2016-05-21 08:15:08 2769 [Note] InnoDB: FTS optimize thread exiting.
2016-05-21 08:15:08 2769 [Note] InnoDB: Starting shutdown...
2016-05-21 08:15:10 2769 [Note] InnoDB: Shutdown completed; log sequence number 1625987

 


A RANDOM PASSWORD HAS BEEN SET FOR THE MySQL root USER !
You will find that password in ‘/root/.mysql_secret‘.

You must change that password on your first connect,
no other statement but ‘SET PASSWORD‘ will be accepted.
See the manual for the semantics of the ‘password expired‘ flag.

Also, the account for the anonymous user has been removed.

In addition, you can run:

  /usr/bin/mysql_secure_installation

which will also give you the option of removing the test database.
This is strongly recommended for production servers.

See the manual for more instructions.

Please report any problems at http://bugs.mysql.com/

The latest information about MySQL is available on the web at

  http://www.mysql.com

Support MySQL by buying support/licenses at http://shop.mysql.com

New default config file was created as /usr/my.cnf and
will be used by default by the server when you start it.
You may edit this file to change server settings


[[email protected] ~]# service mysql start
Starting MySQL.. SUCCESS!
[[email protected] ~]# more /root/.mysql_secret
# The random password set for the root user at Sat May 21 08:15:06 2016 (local time): 6Vx7yDOtOylzwLXa

[[email protected] ~]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.30

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> set PASSWORD=PASSWORD(‘mysql‘);
Query OK, 0 rows affected (0.00 sec)

mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| performance_schema |
| test               |
+--------------------+
4 rows in set (0.00 sec)

mysql> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> update user set password=password(‘mysql‘) where user=‘root‘;
Query OK, 3 rows affected (0.00 sec)
Rows matched: 4  Changed: 3  Warnings: 0

mysql> update user set host=‘%‘ where user=‘root‘ and host=‘localhost‘;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1  Changed: 1  Warnings: 0

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
[[email protected] ~]# chkconfig --list mysql
mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off
[[email protected] ~]#

#================JIRA=============================
[[email protected] ~]# mysql -uroot -pmysql
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 12
Server version: 5.6.30 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> create user ‘jirauser‘@‘localhost‘ identified by ‘jirauser‘;
Query OK, 0 rows affected (0.26 sec)

mysql> create database jira character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.02 sec)

mysql> grant select,insert,update,delete,create,drop,alter,index on jira.* to ‘jirauser‘@‘localhost‘ identified by ‘jirauser‘;
Query OK, 0 rows affected (0.00 sec)

mysql>
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
[[email protected] ~]# cd /var/tmp
[[email protected] tmp]# chmod +x atlassian-jira-6.3.6-x64.bin
[[email protected] tmp]# ./atlassian-jira-6.3.6-x64.bin
Unpacking JRE ...
Starting Installer ...
May 21, 2016 8:53:06 AM java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
May 21, 2016 8:53:06 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.

This will install JIRA Software 7.1.2 on your computer.
OK [o, Enter], Cancel [c]
o
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (use default settings) [1], Custom Install (recommended for advanced users) [2, Enter], Upgrade an existing JIRA installation [3]
1
Details on where JIRA Software will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/jira
Home Directory: /var/atlassian/application-data/jira
HTTP Port: 8080
RMI Port: 8005
Install as service: Yes
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                          

Please wait a few moments while JIRA Software starts up.
Launching JIRA Software ...
Installation of JIRA Software 6.3.6 is complete
Your installation of JIRA Software 6.3.6 is now ready and can be accessed
via your browser.
JIRA Software 6.3.6 can be accessed at http://localhost:8080
Finishing installation ...
[[email protected] tmp]# service jira stop
[[email protected] tmp]# tar -zxvf mysql-connector-java-5.1.39.tar.gz
[[email protected] tmp]# cp mysql-connector-java-5.1.39-bin.jar /opt/atlassian/jira/lib
[[email protected] tmp]# cp atlassian-extras-2.2.2.jar /opt/atlassian/jira/lib
#[[email protected] tmp]# cp atlassian-extras-3.1.2.jar /opt/atlassian/jira/lib
[[email protected] tmp]# service jira start
#================CONFLUENCE==========================


[[email protected] ~]# vi /usr/my.cnf
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html

[mysqld]

# Remove leading # and set to the amount of RAM for the most important data
# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%.
# innodb_buffer_pool_size = 128M

# Remove leading # to turn on a very important data integrity option: logging
# changes to the binary log between backups.
# log_bin

# These are commonly set, remove the # and set as required.
# basedir = .....
# datadir = .....
# port = .....
# server_id = .....
# socket = .....

# Remove leading # to set options mainly useful for reporting servers.
# The server defaults are faster for transactions and fast SELECTs.
# Adjust sizes as needed, experiment to find the optimal values.
# join_buffer_size = 128M
# sort_buffer_size = 2M
# read_rnd_buffer_size = 2M

#sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

port = 3306
socket = /var/lib/mysql/mysql.sock
character-set-server=utf8
sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

[mysql]
no-auto-rehash
default-character-set=utf8

[client]
port = 3306
socket = /var/lib/mysql/mysql.sock
default-character-set=utf8
"/usr/my.cnf" 42L, 1205C written
[[email protected] ~]# service mysql restart
Shutting down MySQL.... SUCCESS!
Starting MySQL. SUCCESS!
[[email protected] ~]# mysql -uroot -pmysql
Warning: Using a password on the command line interface can be insecure.
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 21
Server version: 5.6.30 MySQL Community Server (GPL)

Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type ‘help;‘ or ‘\h‘ for help. Type ‘\c‘ to clear the current input statement.

mysql> create user ‘confluenceuser‘@‘localhost‘ identified by ‘confluenceuser‘;
Query OK, 0 rows affected (0.04 sec)

mysql> create database confluence character set utf8 collate utf8_bin;
Query OK, 1 row affected (0.04 sec)

mysql> grant all privileges on confluence.* to ‘confluenceuser‘@‘localhost‘ identified by ‘confluenceuser‘;
Query OK, 0 rows affected (0.00 sec)

mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)

mysql> exit
Bye
[[email protected] ~]# cd /var/tmp/
[[email protected] tmp]# chmod +x atlassian-confluence-5.9.4-x64.bin
[[email protected] tmp]# ./atlassian-confluence-5.9.4-x64.bin
Unpacking JRE ...
Starting Installer ...
May 29, 2016 1:47:22 AM java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.

This will install Confluence 5.9.4 on your computer.
OK [o, Enter], Cancel [c]
o
Choose the appropriate installation or upgrade option.
Please choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for advanced users) [2, Enter],
Upgrade an existing Confluence installation [3]
1
See where Confluence will be installed and the settings that will be used.
Installation Directory: /opt/atlassian/confluence
Home Directory: /var/atlassian/application-data/confluence
HTTP Port: 8090
RMI Port: 8000
Install as service: Yes
Install [i, Enter], Exit [e]
i

Extracting files ...
                                                                          

Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 5.9.4 is complete
Your installation of Confluence 5.9.4 is now ready and can be accessed via
your browser.
Confluence 5.9.4 can be accessed at http://localhost:8090
Finishing installation ...
[[email protected] tmp]# service confluence stop
executing using dedicated user
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/confluence
Using CATALINA_HOME:   /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME:        /opt/atlassian/confluence/jre/
Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pid
Tomcat stopped.
[[email protected] tmp]# cp /var/tmp/mysql-connector-java-5.1.39/mysql-connector-java-5.1.39-bin.jar /opt/atlassian/confluence/lib
[[email protected] tmp]# cp /var/tmp/atlassian-extras-decoder-v2-3.2.jar   /opt/atlassian/confluence/confluence/WEB-INF/lib
[[email protected] tmp]# service confluence start

To run Confluence in the foreground, start the server with start-confluence.sh -fg
executing using dedicated user: confluence
If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide

Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/confluence
Using CATALINA_HOME:   /opt/atlassian/confluence
Using CATALINA_TMPDIR: /opt/atlassian/confluence/temp
Using JRE_HOME:        /opt/atlassian/confluence/jre/
Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pid
Tomcat started.

以上是关于LINUX6.5 + MYSQL5.6 + JIRA6.3 + CONFLUENCE5.9的主要内容,如果未能解决你的问题,请参考以下文章

LINUX6.5 + MYSQL5.6 + JIRA6.3 + CONFLUENCE5.9

linux6.5+5.4 vncserver配置

Linux6.5安装桌面环境

Linux6.5中搭建NFS服务,远程存储数据。

在Linux6.5系统中搭建DHCP服务和中继代理

linux6.5环境下安装python