码迷,mamicode.com
首页 > 数据库 > 详细

LINUX6.5 + MYSQL5.6 + JIRA6.3.6 + AGILE6.3.1

时间:2016-05-23 00:43:14      阅读:369      评论:0      收藏:0      [点我收藏+]

标签:

[root@localhost Desktop]# /sbin/ifup eth0
[root@localhost Desktop]# service network restart

[root@localhost ~]# rpm -qa | grep mysql
mysql-libs-5.1.71-1.el6.x86_64
[root@localhost ~]# rpm -e mysql-libs-5.1.71-1.el6.x86_64
error: Failed dependencies:
        libmysqlclient.so.16()(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        libmysqlclient.so.16(libmysqlclient_16)(64bit) is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
        mysql-libs is needed by (installed) postfix-2:2.6.6-2.2.el6_1.x86_64
[root@localhost ~]# rpm -e --nodeps  mysql-libs-5.1.71-1.el6.x86_64
[root@localhost ~]# rpm -qa | grep mysql
[root@localhost ~]# cd /usr/tmp/
[root@localhost tmp]# ll
total 221112
-rwsrwsrwt. 1 root root 226416640 May 21 07:51 MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
[root@localhost tmp]# tar xf MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
[root@localhost tmp]# ll
total 442224
-rwsrwsrwt. 1 root root  226416640 May 21 07:51 MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
-rw-r--r--. 1 7155 31415  18928540 Mar  4 01:13 MySQL-client-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   3424912 Mar  4 01:14 MySQL-devel-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  89732912 Mar  4 01:14 MySQL-embedded-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  56982836 Mar  4 01:15 MySQL-server-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   1961716 Mar  4 01:15 MySQL-shared-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   3969756 Mar  4 01:15 MySQL-shared-compat-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  51401352 Mar  4 01:15 MySQL-test-5.6.30-1.el6.x86_64.rpm
[root@localhost 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


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

[root@localhost ~]# 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
[root@localhost ~]# chkconfig --list mysql
mysql           0:off   1:off   2:on    3:on    4:on    5:on    6:off
[root@localhost ~]#

 

 

 

 

[root@localhost ~]# 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
Bye
[root@localhost tmp]# ll
total 758680
-rw-r--r--. 1 root root  320150041 Apr 24 02:14 atlassian-jira-software-7.1.2-jira-7.1.2-x64.bin
-rwsrwsrwt. 1 root root  226416640 May 21 07:51 MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
-rw-r--r--. 1 7155 31415  18928540 Mar  4 01:13 MySQL-client-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 root root    3899019 May 20 08:23 mysql-connector-java-5.1.39.tar.gz
-rw-r--r--. 1 7155 31415   3424912 Mar  4 01:14 MySQL-devel-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  89732912 Mar  4 01:14 MySQL-embedded-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  56982836 Mar  4 01:15 MySQL-server-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   1961716 Mar  4 01:15 MySQL-shared-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   3969756 Mar  4 01:15 MySQL-shared-compat-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  51401352 Mar  4 01:15 MySQL-test-5.6.30-1.el6.x86_64.rpm
[root@localhost tmp]# chmod +x atlassian-jira-software-7.1.2-jira-7.1.2-x64.bin
[root@localhost tmp]# ./atlassian-jira-software-7.1.2-jira-7.1.2-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]

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 7.1.2 is complete
Your installation of JIRA Software 7.1.2 is now ready and can be accessed
via your browser.
JIRA Software 7.1.2 can be accessed at http://localhost:8080
Finishing installation ...
[root@localhost tmp]# ll
total 758680
-rwxr-xr-x. 1 root root  320150041 Apr 24 02:14 atlassian-jira-software-7.1.2-jira-7.1.2-x64.bin
-rwsrwsrwt. 1 root root  226416640 May 21 07:51 MySQL-5.6.30-1.el6.x86_64.rpm-bundle.tar
-rw-r--r--. 1 7155 31415  18928540 Mar  4 01:13 MySQL-client-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 root root    3899019 May 20 08:23 mysql-connector-java-5.1.39.tar.gz
-rw-r--r--. 1 7155 31415   3424912 Mar  4 01:14 MySQL-devel-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  89732912 Mar  4 01:14 MySQL-embedded-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  56982836 Mar  4 01:15 MySQL-server-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   1961716 Mar  4 01:15 MySQL-shared-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415   3969756 Mar  4 01:15 MySQL-shared-compat-5.6.30-1.el6.x86_64.rpm
-rw-r--r--. 1 7155 31415  51401352 Mar  4 01:15 MySQL-test-5.6.30-1.el6.x86_64.rpm
[root@localhost tmp]# tar -zxvf mysql-connector-java-5.1.39.tar.gz
[root@localhost tmp]# cd /usr/tmp/mysql-connector-java-5.1.39
[root@localhost mysql-connector-java-5.1.39]# ll
total 1448
-rw-r--r--. 1 root root  90721 May  4 04:11 build.xml
-rw-r--r--. 1 root root 239747 May  4 04:11 CHANGES
-rw-r--r--. 1 root root  18122 May  4 04:11 COPYING
drwxr-xr-x. 2 root root   4096 May 21 08:56 docs
-rw-r--r--. 1 root root 989497 May  4 04:11 mysql-connector-java-5.1.39-bin.jar
-rw-r--r--. 1 root root  61407 May  4 04:11 README
-rw-r--r--. 1 root root  63658 May  4 04:11 README.txt
drwxr-xr-x. 8 root root   4096 May  4 04:11 src
[root@localhost mysql-connector-java-5.1.39]# cp mysql-connector-java-5.1.39-bin.jar /opt/atlassian/jira/lib
[root@localhost mysql-connector-java-5.1.39]# service jira stop
executing using dedicated user
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.

     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.

      Atlassian JIRA
      Version : 7.1.2
                 

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/jira
Using CATALINA_HOME:   /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME:        /opt/atlassian/jira/jre/
Using CLASSPATH:       /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/jira/work/catalina.pid
Tomcat stopped.
[root@localhost mysql-connector-java-5.1.39]# service jira start

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira
                .....
          .... .NMMMD.  ...
        .8MMM.  $MMN,..~MMMO.
        .?MMM.         .MMM?.

     OMMMMZ.           .,NMMMN~
     .IMMMMMM. .NMMMN. .MMMMMN,
       ,MMMMMM$..3MD..ZMMMMMM.
        =NMMMMMM,. .,MMMMMMD.
         .MMMMMMMM8MMMMMMM,
           .ONMMMMMMMMMMZ.
             ,NMMMMMMM8.
            .:,.$MMMMMMM
          .IMMMM..NMMMMMD.
         .8MMMMM:  :NMMMMN.
         .MMMMMM.   .MMMMM~.
         .MMMMMN    .MMMMM?.

      Atlassian JIRA
      Version : 7.1.2
                 

If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE:   /opt/atlassian/jira
Using CATALINA_HOME:   /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME:        /opt/atlassian/jira/jre/
Using CLASSPATH:       /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID:    /opt/atlassian/jira/work/catalina.pid
Tomcat started.
[root@localhost mysql-connector-java-5.1.39]#

LINUX6.5 + MYSQL5.6 + JIRA6.3.6 + AGILE6.3.1

标签:

原文地址:http://www.cnblogs.com/quanweiru/p/5518356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!