#================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 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 the DEFAULT value is deprecated. --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 create D!
2016-05-21 08:15:05 2747 [Note] innodb:setting file./ibdata1 size to 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 + MB
2016-05-21 08:15:05 2747 [Note] innodb:setting log file./ib_logfile1 size to + 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) is 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'll 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 the DEFAULT value is deprecated. --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) is 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 have BEEN SET for the MySQL root USER!
You'll find that password in '/root/.mysql_secret '.
You must change this password on your first connect,
No other statement but ' SET PASSWORD ' would be accepted.
See the Manual for the semantics of the ' password expired ' flag.
Also, the anonymous user has been removed.
In addition, you can run:
/usr/bin/mysql_secure_installation
Which would also give you the option of removing the test database.
This is the strongly recommended for production servers.
See the Manual for more instructions.
Problems at http://bugs.mysql.com/
The latest information about MySQL was available on the Web at
Http://www.mysql.com
Support for MySQL by buying support/licenses at http://shop.mysql.com
New Default Config file was created as/usr/my.cnf and
Would be used by default by the server when you start it.
You could edit this file to the 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 08:15:06 (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), Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names 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
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 is 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), Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names 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
[root[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 ...
8:53:06 AM java.util.prefs.filesystempreferences$1 run
info:created User Preferences directory.
8:53:06 AM java.util.prefs.filesystempreferences$2 Run
info:created System Preferences directory in Java. Home.
This would install JIRA software 7.1.2 on your computer.
OK [O, Enter], Cancel [c]
O
Choose the appropriate installation or Upgrade option.
Choose one of the following:
Express install (use default settings) [1], Custom Install (recommended for Advance D users) [2, Enter], Upgrade an existing JIRA installation [3]
1
Details on where JIRA software would be installed an d The settings that would 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 and JIRA software starts up.
Launching JIRA software ...
Installation of JIRA software 6.3.6 is complete
Your installation of JIRA software 6.3.6 are now ready and can be AC Cessed
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 The change settings
# 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 all 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 is 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 is 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 is 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), Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of the Oracle Corporation and/or its
Affiliates. Other names 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 ...
1:47:22 AM java.util.prefs.filesystempreferences$2 Run
Info:created System Preferences directory in Java.home.
This would install Confluence 5.9.4 on your computer.
OK [O, Enter], Cancel [c]
O
Choose the appropriate installation or Upgrade option.
Choose one of the following:
Express Install (uses default settings) [1],
Custom Install (recommended for AD vanced users) [2, Enter],
Upgrade an existing confluence installation [3]
1
See where confluence would be install Ed and the settings that'll 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 and confluence starts up.
Launching confluence ...
Installation of Confluence 5.9.4 is complete
Your installation of Confluence 5.9.4 are 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 St Arting up confluence, please see the installation for http://confluence.atlassian.com/display/DOC/Confluence+ Installation+guide
Server startup logs is 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 the installation Guide at HTTP://CONFLUENCE.ATLASSIAN.COM/DISPL Ay/doc/confluence+installation+guide
Server startup logs is 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