今天搭建Wiki以及JIRA
准备:
1. 一台CentOS 7.8 64位的物理机
2. 内存容量要求大于等于3GB
3. 永久关闭防火墙和SELinux
1. systemctl disable firewalld
2. vi /etc/selinux/conf #修改配置文件,改成disabled
4.更改国内源:
[root@bogon ~]# cd /etc/yum.repos.d/
[root@bogon yum.repos.d]# rm -rf *
[root@bogon yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
[root@bogon yum.repos.d]# yum -y install epel-release
5.安装一些需要的命令,系统本身没有(用到以后再安装也可以)
[root@bogon yum.repos.d]# yum -y install lrzsz-0.12.20-36.el7.x86_64
[root@bogon yum.repos.d]# yum -y install lsof
[root@bogon yum.repos.d]# yum -y install unzip
[root@bogon yum.repos.d]# yum clean all #这步可有可无,清除本地yum缓存
6.搭建wiki环境
[root@bogon ~]# yum install -y mariadb-server mariadb-client mariadb mariadb-devel java-1.8.0-openjdk-* nginx
[root@bogon ~]# systemctl start mariadb
7.准备一下安装包:atlassian-confluence-5.6.6-x64.bin ; confluence5.1-crack.zip(解压);confluence5.6.6-crack.zip ;jira7.3 ;atlassian-jira-software-7.3.8-x64_2.bin ;
搭建wiki
安装数据库
[root@bogon ~]# mysqladmin -uroot password "123"
[root@bogon ~]# mysql -uroot -p123
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 3
Server version: 5.5.68-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]> CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON confluence.* TO'conflue'@'localhost'IDENTIFIED BY'123';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> GRANT ALL PRIVILEGES ON confluence.* TO'conflue'@'127.0.0.1'IDENTIFIED BY'123';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> FLUSH PRIVILEGES;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> exit
Bye
安装confluence
[root@bogon ~]# unzip confluence5.1-crack.zip #解压
[root@bogon ~]# chmod +x atlassian-confluence-5.6.6-x64.bin #给这个一个执行权限
[root@bogon ~]# ./atlassian-confluence-5.6.6-x64.bin #启动
Unpacking JRE ...
Starting Installer ...
五月 08, 2021 9:53:23 下午 java.util.prefs.FileSystemPreferences$1 run
INFO: Created user preferences directory.
五月 08, 2021 9:53:23 下午 java.util.prefs.FileSystemPreferences$2 run
INFO: Created system preferences directory in java.home.
This will install Confluence 5.6.6 on your computer.
OK [o, Enter], Cancel [c]
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]
Extracting files ...
Please wait a few moments while Confluence starts up.
Launching Confluence ...
Installation of Confluence 5.6.6 is complete
Your installation of Confluence 5.6.6 is now ready and can be accessed via
your browser.
Confluence 5.6.6 can be accessed at http://localhost:8090
Finishing installation ...
安装完成,谷歌浏览器打开进行安装,搜索栏搜索ip:8090 #物理机的ip地址
完成上一步后
开始破解:
[root@bogon ~]# service confluence stop #先关闭confluence
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.
[root@bogon ~]# rm -fr /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-* #然后删除confluence安装生成的jar包
然后上传confluence5.6.6-crack.zip到root下,并解压
[root@bogon ~]# cp ./confluence5.6.6-crack/jar/* /opt/atlassian/confluence/confluence/WEB-INF/lib/ #然后导入破解包里的jar包到上述的lib目录,解压破解包,把里面的atlassian-extras-3.2.jar、Confluence-5.6.6-language-pack-zh_CN.jar、mysql-connector-java-5.1.39-bin.jar三个jar文件复制到/opt/atlassian/confluence/confluence/WEB-INF/lib目录下
[root@bogon ~]# cd /opt/atlassian/confluence/confluence/WEB-INF/lib/
[root@bogon lib]# ls|grep -E "atlassian-extras|Confluence-5.6.6-language-pack|mysql-connector-java" #查看有没有
atlassian-extras-3.2.jar
Confluence-5.6.6-language-pack-zh_CN.jar
mysql-connector-java-5.1.39-bin.jar
#注意这里要有这三个包
在windows上运行jar包,Linux上运行会出错,http://www.java.com/zh_CN/安装最新java虚拟机,然后运行confluence_keygen.jar文件
复制出来此处生成的KEY
在启动confluence,把key粘贴到LICENSE KEY里面
[root@db-server lib]# service confluence start
开始配置链接mysql数据库
初始化时间较长,建议耐心等待,不要刷新不要刷新不要刷新,重要事情说三遍,刷新就重装吧。如果出现两次及以上破解的时候证书有问题,就换台物理机进行操作,或者重装一下系统,再来一次。
然后登录就进来了。
搭建JIRA
准备工作(暂且忽略,上面弄完了):
- ATLASSIAN 官方网站
jira7.3.8
安装包:要选Linux
的jira 7.3.8
哦!jira7.3-crack
文件- 一台纯洁的机器
jira
(Minimal
的CentOS7
) - 修改
yum
源 - 关闭
SELINUX
- 关闭防火墙
- 推荐安装
vim
、rz
(lrzsz
) - 安装Java虚拟机
- 安装mariadb数据库并初始化
从这里正式开始:
创建jira数据库
[root@bogon ~]# mysql -uroot -p123 #因为之前已经创建过数据库了,这里直接输入用户和密码进入
。
。
MariaDB [(none)]> create database jira default character set utf8 collate utf8_bin;
。
#exit退出
安装jira7.3.8,安装包名atlassian-jira-software-7.3.8-x64_2.bin
先给该包一个执行权限
[root@bogon ~]# chmod +x atlassian-jira-software-7.3.8-x64_2.bin
[root@bogon ~]# ./atlassian-jira-software-7.3.8-x64_2.bin
Unpacking JRE ...
Starting Installer ...
五月 09, 2021 1:13:37 下午 java.util.prefs.FileSystemPreferences$2 run
信息: Created system preferences directory in java.home.
This will install JIRA Software 7.3.8 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\^H
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]
Extracting files ...
Please wait a few moments while JIRA Software is configured.
Installation of JIRA Software 7.3.8 is complete
Start JIRA Software 7.3.8 now?
Yes [y, Enter], No [n] #注意,这里按n
n
Installation of JIRA Software 7.3.8 is complete
Your installation of JIRA Software 7.3.8 is now ready.
Finishing installation ...
[root@bogon ~]#
上传破解包jira7.3.zip,把破解包内的文件复制到/opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
目录下
[root@bogon ~]# \cp -f ~/jira7.3/* /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/
开启jira服务
[root@bogon lib]# /opt/atlassian/jira/bin/start-jira.sh
接下来通过windows的浏览器访问jira机器的ip加端口8080 http://192.168.230.128:8080/
剩下的点点点就完事了。