搭建Wiki+JIRA超详细教程
x关闭防火墙,selinux并清空iptables[root@bogon tmp]# systemctl stop firewalld [root@bogon tmp]# systemctl disable firewalld[root@bogon tmp]# setenforce 0[root@bogon tmp]# iptables -F-------------------------环境与服务安装---------------------------------[root@bogon tmp]# yum -y install java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64 mariadb mariadb-server mysql-connector-java mariadb-client mariadb-devel nginx #安装环境[root@bogon tmp]# java -version #查看是否安装成功openjdk version "1.8.0_282"OpenJDK Runtime Environment (build 1.8.0_282-b08)OpenJDK 64-Bit Server VM (build 25.282-b08, mixed mode)-------------------------MYSQL数据库操作-------------------------------[root@bogon tmp]# systemctl start mariadb #开启数据库[root@bogon tmp]# systemctl enable mariadb #设置开机自启[root@bogon ~]# mysqladmin -uroot password "123" #修改MYSQL密码[root@bogon ~]# mysql -uroot -p123 #进入数据库MariaDB [mysql]> CREATE DATABASE confluence CHARACTER SET utf8 COLLATE utf8_bin; #创建数据库并设置字符集MariaDB [(none)]> create database jira default character set utf8 collate utf8_bin; # 创建`jira`数据库MariaDB [mysql]> GRANT ALL PRIVILEGES ON confluence.* TO'conflue'@'%' IDENTIFIED BY'conflue12300.'; #创建用户并设置密码MariaDB [mysql]> flush privileges; #刷新授权表MariaDB [(none)]> exit #退出---------------------------------安装--------------------------------rz或者直接拖拽将wiki的安装包上传到服务器中(atlassian-confluence-5.6.6-x64.bin、confluence5.6.6-crack)这两个[root@bogon ~]# yum install -y unzip #安装zip包解压工具[root@bogon tmp]# unzip confluence5.6.6-crack.zip #解压破解包[root@bogon tmp]# yum install -y dejavu-sans-fonts #安装依赖环境[root@bogon tmp]# chmod +x atlassian-confluence-5.6.6-x64.bin #提执行权限[root@bogon tmp]# ./atlassian-confluence-5.6.6-x64.bin #执行安装Unpacking JRE ...Starting Installer ...Nov 17, 2019 6:01:18 PM java.util.prefs.FileSystemPreferences$1 run...执行之后根据提示输入相应的字母或者数字This will install Confluence 5.6.6 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 回车Please wait a few moments while Confluence starts up.Launching Confluence ...Installation of Confluence 5.6.6 is completeYour installation of Confluence 5.6.6 is now ready and can be accessed viayour browser.Confluence 5.6.6 can be accessed at http://localhost:8090Finishing installation ...#我们可以很明显的看出confluence安装到了/opt/atlassian/confluence和/var/atlassian/application-data/confluence目录下,并且confluence监听的端口是8090#然后我们进行浏览器访问 切记自己的IP后面要加上:8090 例如10.9.32.9:8090#进入浏览器后右边start setup#他会出现Confluence Setup Wizard的页面 请保存Server ID XXXX-XXXX-XXXX-XXXX
回到服务器操作#先停止confluence[root@bogon tmp]# service confluence stop #停止confluence命令#要看回显 他是否停止 Tomcat stopped.[root@bogon tmp]# rm -rf /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-* #删除confluence安装生成的jar包[root@bogon tmp]# cd confluence5.6.6-crack/jar/ #进入破解包目录[root@bogon jar]# cp ./* /opt/atlassian/confluence/confluence/WEB-INF/lib/ #复制破解jar文件[root@bogon jar]# 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.jarConfluence-5.6.6-language-pack-zh_CN.jarmysql-connector-java-5.1.39-bin.jar #回显是这三个就没问题这时候在windows上运行jar包,linux上运行会报错(我这里安装了java的模拟器,可以直接在win上执行jar程序)怎么下载java虚拟机什么的就不写了 如果需要破解直接找我发ID就行[root@bogon tmp]# service confluence start #启动Tomcat started. #回显显示启动就可以
这时再回到浏览器在License Key中填写我们的密码 #别问我怎么得到 找我开始配置链接mysql数据库 选择MySQL 点击External Database 点击 Direct JDBC 进去页面后设置User Name和password点击 Next 这时是在初始化数据,所以时间比较长,耐心等待吧进去Load Content页面后 点击Example Site 再点Manage users and groups within Confluence然后我们就进入到了普通的创建用户页面 大家应该都知道了 设置完直接下一步刷新登录即可 wiki搭建完成----------------------------------安装Jira-----------------------------------rz或者直接拖拽将jira的安装包上传到服务器中的/tmp(atlassian-jira-software-7.3.8-x64_2.bin、jira7.3)这两个包[root@bogon tmp]# chmod +x atlassian-jira-software-7.3.8-x64_2.bin #提权[root@bogon tmp]# ./atlassian-jira-software-7.3.8-x64_2.bin #安装This will install JIRA Software 7.3.8 on your computer.OK [o, Enter], Cancel [c]#o 回车 这里是在通知你,将要在你的电脑上安装JIRA 7.3.8,输入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 回车 #系统提示你“选择适当的安装或升级选项”#这里三个选项的含义分别是快速安装(默认设置)、自定义安装(适合高级用户)以及升级现有的JIRA#我们这里选择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 回车 这里是在提示你,默认设置是什么样的如果你同意默认设置,那么输入i或按回车,等待安装完成在一小段时间的等待后,它还会蹦出一个问题Installation of JIRA Software 7.3.8 is completeStart JIRA Software 7.3.8 now?Yes [y, Enter], No [n]#n 回车 #其实到这一步,安装已经完成了。系统在问你,是不是现在就启动JIRA?我们接下来还要进行pojie,需要替换JIRA的文件,所以我们选择不启动,输入n出现如下信息,代表安装成功Installation of JIRA Software 7.3.8 is completeYour installation of JIRA Software 7.3.8 is now ready.Finishing installation ...[root@bogon tmp]# unzip jira7.3.zip #解压破解包[root@bogon jira7.3]# \cp -f /tmp/jira7.3/* /opt/atlassian/jira/atlassian-jira/WEB-INF/lib/ #复制破解文件[root@bogon jira7.3]# /opt/atlassian/jira/bin/start-jira.sh #启动jira服务Tomcat started. #启动成功打开浏览器 访问8080端口 http://10.9.32.9:8080/ #IP是自己的点击我将设置它自己 然后下一步 进到数据库设置选择使用自己的数据库后,会展开如下表单。因为我没有使用分离部署,所以Hostname字段使用的就是127.0.0.1,如果你是采用分离部署的方式安装,请输入你自己的数据库地址。点击其他数据库 数据库类型设置MySQL 主机:127.0.0.1 端口3306 数据库jira 用户名root 密码123点一下测试连接 上方会有测试是否成功 我这边是成功的 下一步 如果不成功就进服务器看数据库 进到(设置应用程序的属性)页面直接下一步然后到了 (请指定您的许可证关键字) 我们点击生成JIRA试用许可证 注册 然后登录 然后你们可以看到是让我试用 点击下面的 Generate License 等待一会他会自动弹出页面给你输入许可证这时我们下一步 不要刷新页面 需要等一小会最后我们进入到设置管理员账户 (自己设置吧) 设置电子邮件通知 (以后再说)进入到Welcome to JIRA, admin! 设置语言(默认中文) 设置头像 完成