Install Confluence on RHEL5U10(RHEL5 + Oracle Database 11g + Confluence)
Confluence是Atlassian公司出品的团队协同与知识管理工具。
它是一个专业的企业知识管理与协同软件,也可以用于构建企业wiki。通过它可以实现团队成员之间的协作和知识共享。
它的官方网站的链接为:http://www.confluence.cn/
本文档分为以下几个部分:
1.Linux操作系统的预配置
2.Oracle Database 11g的部署与用于Confluence数据存储的库的创建
3.Confluence的安装、破解与配置
4.Confluence的使用以及其他话题
下面开始。
——————————————————————————
零、环境说明
Confluence所在服务器:
IP:192.168.56.136
Host Name:confluence
Oracle DB Version:11.2.0.4
SID:confluence
Port:1521
一、Linux预配置。
Shell Log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 |
[root@confluence ~]# lsb_release -a LSB Version: :core-4.0-amd64:core-4.0-ia32:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-ia32:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-ia32:printing-4.0-noarch Distributor ID: RedHatEnterpriseServer Description: Red Hat Enterprise Linux Server release 5.10 (Tikanga) Release: 5.10 Codename: Tikanga [root@confluence ~]# [root@confluence ~]# hostname confluence [root@confluence ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=yes HOSTNAME=confluence [root@confluence ~]# [root@confluence ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost 192.168.56.136 confluence [root@confluence ~]# ifconfig eth0 Link encap:Ethernet HWaddr 00:0C:29:CC:1F:7A inet addr:192.168.56.136 Bcast:192.168.56.255 Mask:255.255.255.0 inet6 addr: fe80::20c:29ff:fecc:1f7a/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:155 errors:0 dropped:0 overruns:0 frame:0 TX packets:119 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:15707 (15.3 KiB) TX bytes:13841 (13.5 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:4824 errors:0 dropped:0 overruns:0 frame:0 TX packets:4824 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:7175324 (6.8 MiB) TX bytes:7175324 (6.8 MiB) [root@confluence ~]# [root@confluence ~]# cat /etc/selinux/config # This file controls the state of SELinux on the system. # SELINUX= can take one of these three values: # enforcing - SELinux security policy is enforced. # permissive - SELinux prints warnings instead of enforcing. # disabled - SELinux is fully disabled. SELINUX=disabled # SELINUXTYPE= type of policy in use. Possible values are: # targeted - Only targeted network daemons are protected. # strict - Full SELinux protection. SELINUXTYPE=targeted [root@confluence ~]# sestatus SELinux status: disabled [root@confluence ~]# [root@confluence ~]# chkconfig --list iptables; iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@confluence ~]# [root@confluence ~]# chkconfig sendmail off [root@confluence ~]# [root@confluence ~]# mkdir /iso //用于挂载光盘介质 [root@confluence ~]# mkdir /software //用于临时存储安装介质 [root@confluence ~]# mkdir /backup //用于备份需修改的原文件 [root@confluence ~]# [root@confluence ~]# cat /etc/fstab LABEL=/ / ext3 defaults 1 1 LABEL=/boot /boot ext3 defaults 1 2 tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 LABEL=SWAP-sda3 swap swap defaults 0 0 /dev/sr1 /iso iso9660 defaults 0 0 //挂载光盘介质 [root@confluence ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 18G 2.5G 14G 16% / /dev/sda1 289M 17M 258M 7% /boot tmpfs 500M 0 500M 0% /dev/shm [root@confluence ~]# mount -a mount: block device /dev/sr1 is write-protected, mounting read-only [root@confluence ~]# df -h //查看光盘挂载情况,同时,确认文件系统使用率:根分区剩余14GB空间,完全足够本文档的全部安装。 Filesystem Size Used Avail Use% Mounted on /dev/sda2 18G 2.5G 14G 16% / /dev/sda1 289M 17M 258M 7% /boot tmpfs 500M 0 500M 0% /dev/shm /dev/sr1 4.1G 4.1G 0 100% /iso //已挂载 [root@confluence ~]# [root@confluence ~]# cat /etc/yum.repos.d/iso.repo //配置YUM源文件 [Server] name=Server baseurl=file:///iso/Server gpgcheck=0 [VT] name=VT baseurl=file:///iso/VT gpgcheck=0 [Cluster] name=Cluster baseurl=file:///iso/Cluster gpgcheck=0 [ClusterStorage] name=ClusterStorage baseurl=file:///iso/ClusterStorage gpgcheck=0 [root@confluence ~]# [root@confluence ~]# yum repolist //YUM库初始化 Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Cluster | 1.5 kB 00:00 Cluster/primary | 6.1 kB 00:00 Cluster 32/32 ClusterStorage | 1.5 kB 00:00 ClusterStorage/primary | 8.6 kB 00:00 ClusterStorage 39/39 Server | 1.5 kB 00:00 Server/primary | 942 kB 00:00 Server 3358/3358 VT | 1.3 kB 00:00 VT/primary | 19 kB 00:00 VT 59/59 repo id repo name status Cluster Cluster 32 ClusterStorage ClusterStorage 39 Server Server 3,358 VT VT 59 repolist: 3,488 [root@confluence ~]# // --------------------------------------------------------- 下面是Oracle数据库的预配置 // --------------------------------------------------------- //安装需要的软件包(部署Oracle数据库需要的软件包) [root@confluence ~]# yum install -y binutils compat-db compat-libstdc++-33.x86_64 control-center gcc gcc-c++ glibc glibc-common libstdc++ libstdc++-devel libXp make ksh sysstat setarch libaio libaio-devel unixODBC unixODBC-devel Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Package binutils-2.17.50.0.6-26.el5.x86_64 already installed and latest version Package 1:control-center-2.16.0-16.el5.x86_64 already installed and latest version Package 1:control-center-2.16.0-16.el5.i386 already installed and latest version Package gcc-4.1.2-54.el5.x86_64 already installed and latest version Package gcc-c++-4.1.2-54.el5.x86_64 already installed and latest version Package glibc-2.5-118.x86_64 already installed and latest version Package glibc-2.5-118.i686 already installed and latest version Package glibc-common-2.5-118.x86_64 already installed and latest version Package libstdc++-4.1.2-54.el5.x86_64 already installed and latest version Package libstdc++-4.1.2-54.el5.i386 already installed and latest version Package libstdc++-devel-4.1.2-54.el5.x86_64 already installed and latest version Package 1:make-3.81-3.el5.x86_64 already installed and latest version Package ksh-20100621-18.el5.x86_64 already installed and latest version Package setarch-2.0-1.1.x86_64 already installed and latest version Package libaio-0.3.106-5.x86_64 already installed and latest version Package libaio-0.3.106-5.i386 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package compat-db.i386 0:4.2.52-5.1 set to be updated ---> Package compat-db.x86_64 0:4.2.52-5.1 set to be updated ---> Package compat-libstdc++-33.x86_64 0:3.2.3-61 set to be updated ---> Package libXp.i386 0:1.0.0-8.1.el5 set to be updated ---> Package libXp.x86_64 0:1.0.0-8.1.el5 set to be updated ---> Package libaio-devel.i386 0:0.3.106-5 set to be updated ---> Package libaio-devel.x86_64 0:0.3.106-5 set to be updated ---> Package libstdc++-devel.i386 0:4.1.2-54.el5 set to be updated Cluster/filelists | 117 kB 00:00 ClusterStorage/filelists | 13 kB 00:00 Server/filelists | 3.0 MB 00:00 VT/filelists | 44 kB 00:00 ---> Package sysstat.x86_64 0:7.0.2-12.el5 set to be updated ---> Package unixODBC.i386 0:2.2.11-10.el5 set to be updated --> Processing Dependency: unixODBC-libs = 2.2.11-10.el5 for package: unixODBC --> Processing Dependency: libodbcinst.so.1 for package: unixODBC --> Processing Dependency: libodbc.so.1 for package: unixODBC ---> Package unixODBC.x86_64 0:2.2.11-10.el5 set to be updated ---> Package unixODBC-devel.i386 0:2.2.11-10.el5 set to be updated ---> Package unixODBC-devel.x86_64 0:2.2.11-10.el5 set to be updated --> Running transaction check ---> Package unixODBC-libs.i386 0:2.2.11-10.el5 set to be updated ---> Package unixODBC-libs.x86_64 0:2.2.11-10.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ======================================================================================= Package Arch Version Repository Size ======================================================================================= Installing: compat-db i386 4.2.52-5.1 Server 1.7 M compat-db x86_64 4.2.52-5.1 Server 1.6 M compat-libstdc++-33 x86_64 3.2.3-61 Server 227 k libXp i386 1.0.0-8.1.el5 Server 22 k libXp x86_64 1.0.0-8.1.el5 Server 23 k libaio-devel i386 0.3.106-5 Server 12 k libaio-devel x86_64 0.3.106-5 Server 11 k libstdc++-devel i386 4.1.2-54.el5 Server 2.8 M sysstat x86_64 7.0.2-12.el5 Server 187 k unixODBC i386 2.2.11-10.el5 Server 290 k unixODBC x86_64 2.2.11-10.el5 Server 291 k unixODBC-devel i386 2.2.11-10.el5 Server 739 k unixODBC-devel x86_64 2.2.11-10.el5 Server 793 k Installing for dependencies: unixODBC-libs i386 2.2.11-10.el5 Server 551 k unixODBC-libs x86_64 2.2.11-10.el5 Server 554 k Transaction Summary ======================================================================================= Install 15 Package(s) Upgrade 0 Package(s) Total download size: 9.8 M Downloading Packages: --------------------------------------------------------------------------------------- Total 629 MB/s | 9.8 MB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : unixODBC-libs 1/15 Installing : unixODBC 2/15 Installing : sysstat 3/15 Installing : libXp 4/15 Installing : compat-libstdc++-33 5/15 Installing : compat-db 6/15 Installing : unixODBC-devel 7/15 Installing : libstdc++-devel 8/15 Installing : libaio-devel 9/15 Installing : libaio-devel 10/15 Installing : unixODBC-libs 11/15 Installing : unixODBC-devel 12/15 Installing : compat-db 13/15 Installing : unixODBC 14/15 Installing : libXp 15/15 Cluster/productid | 1.7 kB 00:00 ClusterStorage/productid | 1.7 kB 00:00 Server/productid | 1.7 kB 00:00 Installed: compat-db.i386 0:4.2.52-5.1 compat-db.x86_64 0:4.2.52-5.1 compat-libstdc++-33.x86_64 0:3.2.3-61 libXp.i386 0:1.0.0-8.1.el5 libXp.x86_64 0:1.0.0-8.1.el5 libaio-devel.i386 0:0.3.106-5 libaio-devel.x86_64 0:0.3.106-5 libstdc++-devel.i386 0:4.1.2-54.el5 sysstat.x86_64 0:7.0.2-12.el5 unixODBC.i386 0:2.2.11-10.el5 unixODBC.x86_64 0:2.2.11-10.el5 unixODBC-devel.i386 0:2.2.11-10.el5 unixODBC-devel.x86_64 0:2.2.11-10.el5 Dependency Installed: unixODBC-libs.i386 0:2.2.11-10.el5 unixODBC-libs.x86_64 0:2.2.11-10.el5 Complete! [root@confluence ~]# [root@confluence database]# yum list | grep elfutils-libelf-devel This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. elfutils-libelf-devel.i386 0.137-3.el5 Server elfutils-libelf-devel.x86_64 0.137-3.el5 Server elfutils-libelf-devel-static.i386 0.137-3.el5 Server elfutils-libelf-devel-static.x86_64 0.137-3.el5 Server [root@confluence database]# yum install -y elfutils-libelf-devel.i386 Loaded plugins: product-id, security, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package elfutils-libelf-devel.i386 0:0.137-3.el5 set to be updated --> Processing Dependency: elfutils-libelf-devel-static-i386 = 0.137-3.el5 for package: elfutils-libelf-devel --> Processing Dependency: elfutils-libelf-i386 = 0.137-3.el5 for package: elfutils-libelf-devel --> Processing Dependency: libelf.so.1 for package: elfutils-libelf-devel --> Running transaction check ---> Package elfutils-libelf.i386 0:0.137-3.el5 set to be updated ---> Package elfutils-libelf-devel-static.i386 0:0.137-3.el5 set to be updated --> Finished Dependency Resolution Dependencies Resolved ======================================================================================= Package Arch Version Repository Size ======================================================================================= Installing: elfutils-libelf-devel i386 0.137-3.el5 Server 25 k Installing for dependencies: elfutils-libelf i386 0.137-3.el5 Server 58 k elfutils-libelf-devel-static i386 0.137-3.el5 Server 66 k Transaction Summary ======================================================================================= Install 3 Package(s) Upgrade 0 Package(s) Total download size: 149 k Downloading Packages: --------------------------------------------------------------------------------------- Total 11 MB/s | 149 kB 00:00 Running rpm_check_debug Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Installing : elfutils-libelf 1/3 Installing : elfutils-libelf-devel 2/3 Installing : elfutils-libelf-devel-static 3/3 Installed: elfutils-libelf-devel.i386 0:0.137-3.el5 Dependency Installed: elfutils-libelf.i386 0:0.137-3.el5 elfutils-libelf-devel-static.i386 0:0.137-3.el5 Complete! [root@confluence database]# //配置Linux内核文件(为Oracle数据库的安装做准备) [root@confluence ~]# cat /etc/sysctl.conf # Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. # Controls IP packet forwarding net.ipv4.ip_forward = 0 # Controls source route verification net.ipv4.conf.default.rp_filter = 1 # Do not accept source routing net.ipv4.conf.default.accept_source_route = 0 # Controls the System Request debugging functionality of the kernel kernel.sysrq = 0 # Controls whether core dumps will append the PID to the core filename # Useful for debugging multi-threaded applications kernel.core_uses_pid = 1 # Controls the use of TCP syncookies net.ipv4.tcp_syncookies = 1 # Controls the default maxmimum size of a mesage queue kernel.msgmnb = 65536 # Controls the maximum size of a message, in bytes kernel.msgmax = 65536 # Controls the maximum shared segment size, in bytes kernel.shmmax = 68719476736 # Controls the maximum number of shared memory segments, in pages kernel.shmall = 4294967296 # For Oracle DB 11g kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 fs.file-max = 6815744 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048576 fs.aio-max-nr = 1048576 [root@confluence ~]# //Linux资源限制文件 [root@confluence ~]# cat /etc/security/limits.conf # /etc/security/limits.conf # #Each line describes a limit for a user in the form: # # # #Where: # can be: # - an user name # - a group name, with @group syntax # - the wildcard *, for default entry # - the wildcard %, can be also used with %group syntax, # for maxlogin limit # # can have the two values: # - "soft" for enforcing the soft limits # - "hard" for enforcing hard limits # # can be one of the following: # - core - limits the core file size (KB) # - data - max data size (KB) # - fsize - maximum filesize (KB) # - memlock - max locked-in-memory address space (KB) # - nofile - max number of open files # - rss - max resident set size (KB) # - stack - max stack size (KB) # - cpu - max CPU time (MIN) # - nproc - max number of processes # - as - address space limit # - maxlogins - max number of logins for this user # - maxsyslogins - max number of logins on the system # - priority - the priority to run user process with # - locks - max number of file locks the user can hold # - sigpending - max number of pending signals # - msgqueue - max memory used by POSIX message queues (bytes) # - nice - max nice priority allowed to raise to # - rtprio - max realtime priority # # # #* soft core 0 #* hard rss 10000 #@student hard nproc 20 #@faculty soft nproc 20 #@faculty hard nproc 50 #ftp hard nproc 0 #@student - maxlogins 4 # End of file * soft nproc 2047 * hard nproc 16384 * soft nofile 1024 * hard nofile 65536 [root@confluence ~]# //Linux的PAM认证模块配置文件 [root@confluence ~]# cat /etc/pam.d/login #%PAM-1.0 auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so auth include system-auth account required pam_nologin.so account include system-auth password include system-auth # pam_selinux.so close should be the first session rule session required pam_selinux.so close session optional pam_keyinit.so force revoke session required pam_loginuid.so session include system-auth session optional pam_console.so # pam_selinux.so open should only be followed by sessions to be executed in the user context session required pam_selinux.so open session required /lib/security/pam_limits.so session required pam_limits.so [root@confluence ~]# //为Oracle创建用户组、用户 [root@confluence ~]# groupadd oinstall [root@confluence ~]# groupadd dba [root@confluence ~]# useradd -g oinstall -G dba oracle [root@confluence ~]# passwd oracle Changing password for user oracle. New UNIX password: Retype new UNIX password: Sorry, passwords do not match. New UNIX password: BAD PASSWORD: it is based on a dictionary word Retype new UNIX password: passwd: all authentication tokens updated successfully. //为Oracle创建文件系统结构 [root@confluence ~]# mkdir -p /u01/app [root@confluence ~]# chown -R oracle.oinstall /u01 [root@confluence ~]# //为Oracle设置操作系统用户(oracle)的环境变量 [root@confluence ~]# cat /home/oracle/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH export TMP=/tmp export TMPDIR=$TMP export ORACLE_BASE=/u01/app export ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1 export ORACLE_SID=confluence export ORACLE_TERM=xterm export PATH=/usr/sbin:$PATH export PATH=$ORACLE_HOME/bin:$PATH export LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib64:/usr/lib64:/usr/local/lib64:/usr/X11R6/lib64/ export CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib [root@confluence ~]# |
(至此,Linux的预配置完成。)
二、数据库部分:Oracle Database 11g
将数据库的安装介质上传服务器:
Shell Log:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@confluence ~]# cd /software [root@confluence software]# ll total 2489640 -rw-r--r-- 1 root root 1395582860 Jul 26 19:36 p13390677_112040_Linux-x86-64_1of7.zip -rw-r--r-- 1 root root 1151304589 Jul 26 19:35 p13390677_112040_Linux-x86-64_2of7.zip [root@confluence software]# du -sh * 1.4G p13390677_112040_Linux-x86-64_1of7.zip 1.1G p13390677_112040_Linux-x86-64_2of7.zip [root@confluence software]# //修改权限,以便操作系统用户oracle可以对这些文件作出相应的操作 [root@confluence software]# chmod -R 777 /software/ [root@confluence software]# ll total 2489640 -rwxrwxrwx 1 root root 1395582860 Jul 26 19:36 p13390677_112040_Linux-x86-64_1of7.zip -rwxrwxrwx 1 root root 1151304589 Jul 26 19:35 p13390677_112040_Linux-x86-64_2of7.zip [root@confluence software]# |
使用操作系统用户oracle解压/software下的文件
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
[root@confluence software]# su - oracle [oracle@confluence ~]$ whoami oracle [oracle@confluence ~]$ pwd /home/oracle [oracle@confluence ~]$ cd /software [oracle@confluence software]$ ls p13390677_112040_Linux-x86-64_1of7.zip p13390677_112040_Linux-x86-64_2of7.zip [oracle@confluence software]$ unzip p13390677_112040_Linux-x86-64_1of7.zip ;unzip p13390677_112040_Linux-x86-64_2of7.zip (... ...输出内容) inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup9.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup32.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup35.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup49.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup47.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup40.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup17.20.1.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup56.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup24.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup17.16.1.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup23.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup16.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup11.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup17.21.1.jar inflating: database/stage/Components/oracle.rdbms/11.2.0.4.0/1/DataFiles/filegroup18.jar [oracle@confluence software]$ [oracle@confluence software]$ ll total 2489644 drwxr-xr-x 7 oracle oinstall 4096 Aug 26 2013 database -rwxrwxrwx 1 root root 1395582860 Jul 26 19:36 p13390677_112040_Linux-x86-64_1of7.zip -rwxrwxrwx 1 root root 1151304589 Jul 26 19:35 p13390677_112040_Linux-x86-64_2of7.zip [oracle@confluence software]$ cd database/ [oracle@confluence database]$ ls install readme.html response rpm runInstaller sshsetup stage welcome.html [oracle@confluence database]$ |
配置DISPLAY:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
[oracle@confluence database]$ env | grep DISPLAY [oracle@confluence database]$ ping -c 3 192.168.56.1 PING 192.168.56.1 (192.168.56.1) 56(84) bytes of data. 64 bytes from 192.168.56.1: icmp_seq=1 ttl=64 time=0.199 ms 64 bytes from 192.168.56.1: icmp_seq=2 ttl=64 time=0.148 ms 64 bytes from 192.168.56.1: icmp_seq=3 ttl=64 time=0.158 ms --- 192.168.56.1 ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.148/0.168/0.199/0.024 ms [oracle@confluence database]$ export DISPLAY=192.168.56.1:0.0 [oracle@confluence database]$ env | grep DISPLAY DISPLAY=192.168.56.1:0.0 [oracle@confluence database]$ |
(其中“192.168.56.1”为本地主机)
本地运行Passive:
服务器,启用DISPLAY:
1 2 3 |
[oracle@confluence database]$ xhost + access control disabled, clients can connect from any host [oracle@confluence database]$ |
测试:
1 2 3 |
[oracle@confluence database]$ xclock & [1] 4374 [oracle@confluence database]$ |
调用OUI,开始安装。(以下的安装步骤为了方便,除了安装数据库软件,也会包含建库的步骤)
1 2 3 4 5 6 7 8 9 10 11 12 13 |
[oracle@confluence database]$ pwd /software/database [oracle@confluence database]$ ls install readme.html response rpm runInstaller sshsetup stage welcome.html [oracle@confluence database]$ ./runInstaller & [1] 4381 [oracle@confluence database]$ Starting Oracle Universal Installer... Checking Temp space: must be greater than 120 MB. Actual 9098 MB Passed Checking swap space: must be greater than 150 MB. Actual 2015 MB Passed Checking monitor: must be configured to display at least 256 colors. Actual 16777216 Passed Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-07-26_07-57-48PM. Please wait ... [oracle@confluence database]$ |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
[root@confluence database]# whoami root [root@confluence database]# /u01/oraInventory/orainstRoot.sh Changing permissions of /u01/oraInventory. Adding read,write permissions for group. Removing read,write,execute permissions for world. Changing groupname of /u01/oraInventory to oinstall. The execution of the script is complete. [root@confluence database]# [root@confluence database]# /u01/app/product/10.2.0/db_1/root.sh Performing root user operation for Oracle 11g The following environment variables are set as: ORACLE_OWNER= oracle ORACLE_HOME= /u01/app/product/10.2.0/db_1 Enter the full pathname of the local bin directory: [/usr/local/bin]: Copying dbhome to /usr/local/bin ... Copying oraenv to /usr/local/bin ... Copying coraenv to /usr/local/bin ... Creating /etc/oratab file... Entries will be added to the /etc/oratab file as needed by Database Configuration Assistant when a database is created Finished running generic part of root script. Now product-specific root actions will be performed. Finished product-specific root actions. [root@confluence database]# |
Enterprise Manager Database Control URL – (confluence) :
https://localhost:1158/em
—— —— ——
Done。
这样,Oracle数据库软件和库的创建就完成了。
数据库的状态:
Way One.Enterprise Manager 11g
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
[oracle@confluence ~]$ ps -ef | grep ora_ oracle 16626 1 0 20:31 ? 00:00:00 ora_pmon_confluence oracle 16628 1 0 20:31 ? 00:00:00 ora_psp0_confluence oracle 16630 1 0 20:31 ? 00:00:00 ora_vktm_confluence oracle 16634 1 0 20:31 ? 00:00:00 ora_gen0_confluence oracle 16636 1 0 20:31 ? 00:00:00 ora_diag_confluence oracle 16638 1 0 20:31 ? 00:00:00 ora_dbrm_confluence oracle 16640 1 0 20:31 ? 00:00:00 ora_dia0_confluence oracle 16642 1 0 20:31 ? 00:00:00 ora_mman_confluence oracle 16644 1 0 20:31 ? 00:00:00 ora_dbw0_confluence oracle 16646 1 0 20:31 ? 00:00:01 ora_lgwr_confluence oracle 16648 1 0 20:31 ? 00:00:00 ora_ckpt_confluence oracle 16650 1 0 20:31 ? 00:00:00 ora_smon_confluence oracle 16652 1 0 20:31 ? 00:00:00 ora_reco_confluence oracle 16654 1 0 20:31 ? 00:00:00 ora_mmon_confluence oracle 16656 1 0 20:31 ? 00:00:00 ora_mmnl_confluence oracle 16658 1 0 20:31 ? 00:00:00 ora_d000_confluence oracle 16660 1 0 20:31 ? 00:00:00 ora_s000_confluence oracle 16668 1 0 20:31 ? 00:00:00 ora_qmnc_confluence oracle 16682 1 0 20:31 ? 00:00:00 ora_cjq0_confluence oracle 16717 1 0 20:31 ? 00:00:00 ora_q000_confluence oracle 16720 1 0 20:31 ? 00:00:00 ora_q001_confluence oracle 16769 1 0 20:31 ? 00:00:00 ora_smco_confluence oracle 16781 1 0 20:31 ? 00:00:00 ora_w000_confluence oracle 19891 1 0 20:36 ? 00:00:00 ora_w001_confluence oracle 19900 1 0 20:37 ? 00:00:00 ora_w002_confluence oracle 20244 1 0 20:41 ? 00:00:00 ora_w003_confluence oracle 20481 1 0 20:43 ? 00:00:00 ora_w004_confluence oracle 20483 1 0 20:43 ? 00:00:00 ora_w005_confluence oracle 20498 1 0 20:43 ? 00:00:00 ora_w006_confluence oracle 20512 1 0 20:43 ? 00:00:00 ora_w007_confluence oracle 20520 1 0 20:44 ? 00:00:00 ora_w008_confluence oracle 20526 1 0 20:44 ? 00:00:00 ora_w009_confluence oracle 20880 4285 0 20:48 pts/1 00:00:00 grep ora_ [oracle@confluence ~]$ env | grep SID ORACLE_SID=confluence [oracle@confluence ~]$ lsnrctl status LSNRCTL for Linux: Version 11.2.0.4.0 - Production on 26-JUL-2014 20:48:48 Copyright (c) 1991, 2013, Oracle. All rights reserved. Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521))) STATUS of the LISTENER ------------------------ Alias LISTENER Version TNSLSNR for Linux: Version 11.2.0.4.0 - Production Start Date 26-JUL-2014 20:21:24 Uptime 0 days 0 hr. 27 min. 25 sec Trace Level off Security ON: Local OS Authentication SNMP OFF Listener Parameter File /u01/app/product/10.2.0/db_1/network/admin/listener.ora Listener Log File /u01/app/diag/tnslsnr/confluence/listener/alert/log.xml Listening Endpoints Summary... (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC1521))) (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521))) Services Summary... Service "confluence" has 1 instance(s). Instance "confluence", status READY, has 1 handler(s) for this service... Service "confluenceXDB" has 1 instance(s). Instance "confluence", status READY, has 1 handler(s) for this service... The command completed successfully [oracle@confluence ~]$ [oracle@confluence ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sat Jul 26 20:48:53 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select instance_name,status from v$instance; INSTANCE_NAME STATUS ---------------- ------------ confluence OPEN SQL> |
为Confluence创建数据库表空间与用户
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
SQL> col tablespace_name for a13 SQL> col file_name for a50 SQL> set linesize 200 SQL> select a.tablespace_name,b.file_name from dba_tablespaces a,dba_data_files b where a.tablespace_name=b.tablespace_name; TABLESPACE_NA FILE_NAME ------------- -------------------------------------------------- USERS /u01/app/oradata/confluence/users01.dbf UNDOTBS1 /u01/app/oradata/confluence/undotbs01.dbf SYSAUX /u01/app/oradata/confluence/sysaux01.dbf SYSTEM /u01/app/oradata/confluence/system01.dbf EXAMPLE /u01/app/oradata/confluence/example01.dbf SQL> SQL> create tablespace confluence_data_01 datafile '/u01/app/oradata/confluence/confluence_data_01_01.dbf' size 500M; Tablespace created. SQL> SQL> select a.tablespace_name,b.file_name from dba_tablespaces a,dba_data_files b where a.tablespace_name=b.tablespace_name; TABLESPACE_NAME FILE_NAME -------------------- ------------------------------------------------------------ USERS /u01/app/oradata/confluence/users01.dbf UNDOTBS1 /u01/app/oradata/confluence/undotbs01.dbf SYSAUX /u01/app/oradata/confluence/sysaux01.dbf SYSTEM /u01/app/oradata/confluence/system01.dbf EXAMPLE /u01/app/oradata/confluence/example01.dbf CONFLUENCE_DATA_01 /u01/app/oradata/confluence/confluence_data_01_01.dbf 6 rows selected. SQL> SQL> create user confluence identified by oracle account unlock default tablespace confluence_data_01; User created. SQL> SQL> grant resource,connect to confluence; Grant succeeded. SQL> SQL> select username,default_tablespace from dba_users where lower(username)='confluence'; USERNAME DEFAULT_TABLESPACE ------------------------------ ------------------------------ CONFLUENCE CONFLUENCE_DATA_01 SQL> |
三、Confluence安装与破解
将Confluence的相关介质上传服务器
除了安装介质,还需要下载的软件包括:
Java JDK/JRE 1.6+
Oracle Database JDBC:http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html
Oracle的JDBC,注意要下载对应数据库版本的连接类,本文档中Oracle数据库版本为11204,JDBC也应该下载这个版本。
Shell Log:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@confluence software]# pwd /software [root@confluence software]# ll -ltr total 2780840 drwxr-xr-x 7 oracle oinstall 4096 Aug 26 2013 database -rwxrwxrwx 1 root root 1151304589 Jul 26 19:35 p13390677_112040_Linux-x86-64_2of7.zip -rwxrwxrwx 1 root root 1395582860 Jul 26 19:36 p13390677_112040_Linux-x86-64_1of7.zip -rw-r--r-- 1 root root 3692324 Jul 26 20:52 mysql-connector-java-5.1.24.tar.gz -rw-r--r-- 1 root root 122673 Jul 26 20:52 Confluence-Language-STD-CN.jar -rw-r--r-- 1 root root 632101 Jul 26 20:52 confluence5.1-crack.zip -rw-r--r-- 1 root root 248288335 Jul 26 20:53 atlassian-confluence-5.4.3-x64.bin -rw-r--r-- 1 root root 42364919 Jul 26 20:53 jre-8u5-linux-x64.rpm -rw-r--r-- 1 root root 20365 Jul 26 21:01 simplefan.jar -rw-r--r-- 1 root root 2739616 Jul 26 21:01 ojdbc6.jar [root@confluence software]# |
1)安装Java
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
[root@confluence ~]# cd /software [root@confluence software]# ls atlassian-confluence-5.4.3-x64.bin mysql-connector-java-5.1.24.tar.gz confluence5.1-crack.zip ojdbc6.jar Confluence-Language-STD-CN.jar p13390677_112040_Linux-x86-64_1of7.zip database p13390677_112040_Linux-x86-64_2of7.zip jre-8u5-linux-x64.rpm simplefan.jar [root@confluence software]# rpm -ivh jre-8u5-linux-x64.rpm Preparing... ########################################### [100%] 1:jre ########################################### [100%] Unpacking JAR files... rt.jar... jsse.jar... charsets.jar... localedata.jar... jfxrt.jar... [root@confluence software]# java -version java version "1.8.0_05" Java(TM) SE Runtime Environment (build 1.8.0_05-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode) [root@confluence software]# |
2)安装Confluence
Shell Log:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
[root@confluence software]# pwd /software [root@confluence software]# ls atlassian-confluence-5.4.3-x64.bin jre-8u5-linux-x64.rpm simplefan.jar confluence5.1-crack.zip mysql-connector-java-5.1.24.tar.gz Confluence-Language-STD-CN.jar ojdbc6.jar [root@confluence software]# ll total 291196 -rw-r--r-- 1 root root 248288335 Jul 26 20:53 atlassian-confluence-5.4.3-x64.bin -rw-r--r-- 1 root root 632101 Jul 26 20:52 confluence5.1-crack.zip -rw-r--r-- 1 root root 122673 Jul 26 20:52 Confluence-Language-STD-CN.jar -rw-r--r-- 1 root root 42364919 Jul 26 20:53 jre-8u5-linux-x64.rpm -rw-r--r-- 1 root root 3692324 Jul 26 20:52 mysql-connector-java-5.1.24.tar.gz -rw-r--r-- 1 root root 2739616 Jul 26 21:01 ojdbc6.jar -rw-r--r-- 1 root root 20365 Jul 26 21:01 simplefan.jar [root@confluence software]# chmod 755 atlassian-confluence-5.4.3-x64.bin //赋予执行权限 [root@confluence software]# //执行、安装。 [root@confluence software]# ./atlassian-confluence-5.4.3-x64.bin Unpacking JRE ... Starting Installer ... Jul 26, 2014 9:18:25 PM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. This will install Confluence 5.4.3 on your computer. OK [o, Enter], Cancel [c] //你是否要在本机安装Confluence? 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] //你希望以何种方式安装Confluence?1-默认;2-自定义;3-升级现有的Confluence。 2 Where should Confluence 5.4.3 be installed? [/opt/atlassian/confluence] //你希望Confluence被安装在哪个路径下? Default location for Confluence data [/var/atlassian/application-data/confluence] //Confluence将在哪里存放它的配置信息与数据? Configure which ports Confluence will use. Confluence requires two TCP ports that are not being used by any other applications on this machine. The HTTP port is where you will access Confluence through your browser. The Control port is used to Startup and Shutdown Confluence. Use default ports (HTTP: 8090, Control: 8000) - Recommended [1, Enter], Set custom value for HTTP and Control ports [2] //Confluence将启用什么端口作为WEB应用的监听?默认:浏览-8090;管理-80000;或者,你希望自定义一个端口? 1 Confluence can be run in the background. You may choose to run Confluence as a service, which means it will start automatically whenever the computer restarts. Install Confluence as Service? Yes [y, Enter], No [n] //你希望Confluence作为服务运行吗?如果作为服务运行,它将会开机自动被启动。 y Extracting files ... Please wait a few moments while Confluence starts up. Launching Confluence ... Installation of Confluence 5.4.3 is complete Your installation of Confluence 5.4.3 is now ready and can be accessed via your browser. Confluence 5.4.3 can be accessed at http://localhost:8090 Finishing installation ... [root@confluence software]# |
安装Confluence完成后的系统状态检查:
1 2 3 4 5 6 7 8 9 |
[root@confluence software]# ps -ef | grep --color atlassian 502 2741 1 2 21:19 ? 00:00:13 /opt/atlassian/confluence/jre//bin/java -Djava.util.logging.config.file=/opt/atlassian/confluence/conf/logging.properties -Xms256m -Xmx512m -XX:MaxPermSize=256m -Djava.awt.headless=true -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.endorsed.dirs=/opt/atlassian/confluence/endorsed -classpath /opt/atlassian/confluence/bin/bootstrap.jar -Dcatalina.base=/opt/atlassian/confluence -Dcatalina.home=/opt/atlassian/confluence -Djava.io.tmpdir=/opt/atlassian/confluence/temp org.apache.catalina.startup.Bootstrap start root 3272 22113 0 21:27 pts/1 00:00:00 grep --color atlassian [root@confluence software]# [root@confluence software]# netstat -tupln | grep --color 80 tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3780/sendmail tcp 0 0 ::ffff:127.0.0.1:8000 :::* LISTEN 2741/java tcp 0 0 :::8090 :::* LISTEN 2741/java [root@confluence software]# |
(可以看到:Confluence已经在运行;并且,8000和8090端口已经被监听。)
浏览器访问:(接下来的Conflence破解与配置都需要通过浏览器访问操作)
http://192.168.56.136:8090
http://192.168.56.136:8000
—— —— —— —— —— ——
3)Confluence的破解。
Browse:http://192.168.56.136:8090
(关注Server ID,后面需要用到。)
Shell Log
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
[root@confluence software]# pwd /software [root@confluence software]# ls atlassian-confluence-5.4.3-x64.bin Confluence-Language-STD-CN.jar mysql-connector-java-5.1.24.tar.gz simplefan.jar confluence5.1-crack.zip jre-8u5-linux-x64.rpm ojdbc6.jar [root@confluence software]# unzip confluence5.1-crack.zip Archive: confluence5.1-crack.zip creating: confluence5.1-crack/ inflating: confluence5.1-crack/atlassian-extras-2.4.jar creating: confluence5.1-crack/iNViSiBLE/ inflating: confluence5.1-crack/iNViSiBLE/confluence_keygen.jar inflating: confluence5.1-crack/iNViSiBLE/keygen.bat inflating: confluence5.1-crack/iNViSiBLE/keygen.sh inflating: confluence5.1-crack/iNViSiBLE/keygen_MacOSX.sh [root@confluence software]# cd confluence5.1-crack [root@confluence confluence5.1-crack]# ls atlassian-extras-2.4.jar iNViSiBLE [root@confluence confluence5.1-crack]# cd iNViSiBLE/ [root@confluence iNViSiBLE]# ls confluence_keygen.jar keygen.bat keygen_MacOSX.sh keygen.sh [root@confluence iNViSiBLE]# ll total 584 -rw-r--r-- 1 root root 578992 May 10 2010 confluence_keygen.jar -rw-r--r-- 1 root root 1863 Sep 21 2010 keygen.bat -rw-r--r-- 1 root root 309 Sep 21 2010 keygen_MacOSX.sh -rw-r--r-- 1 root root 299 Sep 21 2010 keygen.sh [root@confluence iNViSiBLE]# chmod -R 755 /software [root@confluence iNViSiBLE]# ll total 584 -rwxr-xr-x 1 root root 578992 May 10 2010 confluence_keygen.jar -rwxr-xr-x 1 root root 1863 Sep 21 2010 keygen.bat -rwxr-xr-x 1 root root 309 Sep 21 2010 keygen_MacOSX.sh -rwxr-xr-x 1 root root 299 Sep 21 2010 keygen.sh [root@confluence iNViSiBLE]# [root@confluence iNViSiBLE]# env | grep DIS [root@confluence iNViSiBLE]# export DISPLAY=192.168.56.1:0.0 [root@confluence iNViSiBLE]# xhost + access control disabled, clients can connect from any host [root@confluence iNViSiBLE]# [root@confluence iNViSiBLE]# ./keygen.sh & [1] 3991 [root@confluence iNViSiBLE]# |
(Patch成功后,才可以Gen。)
(上图中的Key需要记住,后续会要用到。)
复制Patch的*.jar到指定目录
1 2 3 4 5 6 7 8 |
[root@confluence iNViSiBLE]# cd .. [root@confluence confluence5.1-crack]# ls atlassian-extras-2.4.bak atlassian-extras-2.4.jar iNViSiBLE [root@confluence confluence5.1-crack]# cp atlassian-extras-2.4.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/ cp: overwrite `/opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar'? y [root@confluence confluence5.1-crack]# ll /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar -rw-r--r-- 1 root root 149821 Jul 26 21:42 /opt/atlassian/confluence/confluence/WEB-INF/lib/atlassian-extras-2.4.jar [root@confluence confluence5.1-crack]# |
复制Oracle的JDBC到指定路径
1 2 3 4 5 6 7 8 9 |
[root@confluence confluence5.1-crack]# cd .. [root@confluence software]# pwd /software [root@confluence software]# ls atlassian-confluence-5.4.3-x64.bin confluence5.1-crack.zip jre-8u5-linux-x64.rpm ojdbc6.jar confluence5.1-crack Confluence-Language-STD-CN.jar mysql-connector-java-5.1.24.tar.gz simplefan.jar [root@confluence software]# cp ojdbc6.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/ [root@confluence software]# cp simplefan.jar /opt/atlassian/confluence/confluence/WEB-INF/lib/ [root@confluence software]# |
重启Confluence服务,应用上述修改。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
[root@confluence software]# service confluence restart executing using dedicated user If you encounter issues starting up Confluence Standalone, 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 Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid 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 Standalone, 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 Using CATALINA_PID: /opt/atlassian/confluence/work/catalina.pid [root@confluence software]# |
浏览器:再次访问,http://192.168.56.136:8090/
选择“Production Installation”.
设置Confluence的数据库连接方式:
你可以选择Confluence的内置数据库,也可以选择外部数据库(这是被强烈建议的)。
Confluence支持的外部数据库很多,包括:
PostgreSQL
MySQL
Oracle Database 11g
Microsoft SQL Server
等等。
————————————————
本环境如图所示,选择“Oracle 11g”。
数据库的连接信息会被写入文件:
/var/atlassian/application-data/confluence/confluence.cfg.xml
1 2 3 4 5 |
[root@confluence ~]# cat /var/atlassian/application-data/confluence/confluence.cfg.xml | grep --color oracle <property name="hibernate.connection.driver_class">oracle.jdbc.OracleDriver</property> <property name="hibernate.connection.password">oracle</property> <property name="hibernate.connection.url">jdbc:oracle:thin:@192.168.56.137:1521:confluence</property> [root@confluence ~]# |
如果数据库的连接信息(JDBC)写的有问题,那么可能会看到下面的画面:
注:
JDBC中的服务器地址请不要给“localhost”或者“127.0.0.1”这样的地址,它会导致在接下去的“Load Content”步骤中,页面显示的不正常。
由于上面安装数据库软件的时候建库,所以默认监听器是位于127.0.0.1或者localhost上面的,需要做出修改,改为对外的主机名(可以正确的解析到IP)或者直接写上服务器对公共网络的IP。
这是要特别注意的地方!
数据库连接正常的话,页面会看上去“没响应”,但通过服务器后台,可以看到Confluence安装程序是在发生作用的。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
[oracle@confluence ~]$ ps -ef | grep LOCAL oracle 16580 4116 0 00:26 pts/1 00:00:00 grep LOCAL [oracle@confluence ~]$ ps -ef | grep LOCAL oracle 16586 1 0 00:26 ? 00:00:00 oracleconfluence (LOCAL=NO) oracle 16592 1 0 00:26 ? 00:00:00 oracleconfluence (LOCAL=NO) oracle 16594 4116 0 00:26 pts/1 00:00:00 grep LOCAL [oracle@confluence ~]$ [oracle@confluence ~]$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Sun Jul 27 00:26:41 2014 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application Testing options SQL> select count(*) from dba_objects where owner='CONFLUENCE'; COUNT(*) ---------- 245 SQL> |
数据库连接的步骤完成后,Confluence会在数据库指定的用户下重建一系列的表和对象。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
SQL> conn confluence Enter password: Connected. SQL> select count(*) from user_tables; COUNT(*) ---------- 77 SQL> set pagesize 80 SQL> select table_name from user_tables; TABLE_NAME ------------------------------ AO_38321B_CUSTOM_CONTENT_LINK AO_54C900_SPACE_BLUEPRINT_AO AO_54C900_C_TEMPLATE_REF AO_54C900_CONTENT_BLUEPRINT_AO AO_EF9604_FEATURE_DISCOVERY AO_187CCC_SIDEBAR_LINK AO_92296B_AORECENTLY_VIEWED AO_5F3884_FEATURE_DISCOVERY AO_A0B856_WEB_HOOK_LISTENER_AO AO_DC98AE_AOHELP_TIP AO_9412A1_USER_APP_LINK AO_9412A1_AONOTIFICATION AO_9412A1_AOREGISTRATION AO_9412A1_AOTASK AO_9412A1_AOUSER AO_6384AB_FEATURE_METADATA_AO AO_21D670_WHITELIST_RULES AO_42E351_HEALTH_CHECK_ENTITY HIBERNATE_UNIQUE_KEY PAGETEMPLATES CWD_GROUP_ATTRIBUTE ATTACHMENTS OS_USER CWD_GROUP CWD_USER SPACEGROUPS PLUGINDATA TRUSTEDAPP NOTIFICATIONS CWD_USER_ATTRIBUTE SPACES OS_GROUP TRUSTEDAPPRESTRICTION LABEL CLUSTERSAFETY CONFANCESTORS EXTERNAL_ENTITIES CWD_DIRECTORY_OPERATION LOGININFO CONFVERSION EXTRNLNKS CWD_DIRECTORY CONTENT OS_PROPERTYENTRY LINKS CWD_DIRECTORY_ATTRIBUTE CWD_APP_DIR_MAPPING LIKES DECORATOR LOCAL_MEMBERS OS_USER_GROUP KEYSTORE CONTENT_LABEL CWD_APPLICATION_ATTRIBUTE CONTENT_PERM CWD_MEMBERSHIP BODYCONTENT ATTACHMENTDATA REMEMBERMETOKEN CWD_APPLICATION_ADDRESS TRACKBACKLINKS GROUPS INDEXQUEUEENTRIES CONTENTPROPERTIES SPACEGROUPPERMISSIONS USER_MAPPING CWD_USER_CREDENTIAL_RECORD SPACEPERMISSIONS CWD_APP_DIR_OPERATION CWD_APPLICATION EXTERNAL_MEMBERS BANDANA IMAGEDETAILS FOLLOW_CONNECTIONS CONTENT_PERM_SET CWD_APP_DIR_GROUP_MAPPING USERS 77 rows selected. SQL> |
四、Confluence的使用与其他
当前数据库的资源使用状态:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
SQL> select sum(bytes)/1024/1024 from dba_segments where owner='CONFLUENCE'; SUM(BYTES)/1024/1024 -------------------- 6.3125 SQL> SQL> select object_type,count(*) from dba_objects where owner='CONFLUENCE' group by object_type order by 1; OBJECT_TYPE COUNT(*) ------------------- ---------- INDEX 236 LOB 33 SEQUENCE 17 TABLE 77 TRIGGER 17 SQL> |
可以看到,目前为止,消耗了6MB的空间,各个对象的个数如上LOG所示。
—— —— —— ——
至此,关于Confluence的部署全部结束。
————————————————————
Ending。
I hope you will Love IT.