如何在 CentOS 7中安装WebSVN

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了如何在 CentOS 7中安装WebSVN相关的知识,希望对你有一定的参考价值。

CentOS7的环境为$uname-aLinuxoracle3.10.0-123.13.1.el7.x86_64#1SMPTueDec923:06:09UTC2014x86_64x86_64x86_64GNU/Linux注意安装的时候需要安装一个桌面系统(X-Windows+KDE或者Gnome),否则安装程序无法运行。然后根据需要修改共享内存等等系统参数。这个也不写了,网上有很多。不过据我的测试,CentOS7貌似不需要修改也是可以的,Oracle在进行安装检查的时候没有报告问题(和以前的不一样)。当然为了调优数据库的性能,还是修改的好。安装gcc,因为后面Oraclelink的时候会用到yuminstallgcc安装结果为[plain]viewplaincopygcc--versiongcc(GCC)4.8.220140120(RedHat4.8.2-16)Copyright(C)2013FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNOwarranty;notevenforMERCHANTABILITYorFITNESSFORAPARTICULARPURPOSE.(这里注意,因为Oracle需要的3.4和安装的4.8的参数的区别,后面link会失败,解决方法见后)1.下载,需要下载两个文件p10404530_112030_Linux-x86-64_1of7.zipp10404530_112030_Linux-x86-64_2of7.zip2.解压缩,把这两个文件解压到同一个目录下3.运行installer。中间依赖检查那一步,可以Skip。因为Oracle要检查是否安装了gcc,glibc等等比较老的版本(3.4)4.前面一切顺利。到了Link那一步,出错了。Log显示errorininvokingtarget'agentnmhs'在网上查到了解决方案:[plain]viewplaincopyvi$ORACLE_HOME/sysman/lib/ins_emagent.mkSearchfortheline$(MK_EMAGENT_NMECTL)Changeitto:$(MK_EMAGENT_NMECTL)-lnnz115.Retry重试。这就OK了。6.之后就没啥问题了。正常安装,执行root脚本,等等。7.安装后重启服务器。8.重启后,检查oracle用户的环境变量:[plain]viewplaincopydeclare-xORACLE_HOME="/home/oracle/app/oracle/product/11.2.0/dbhome_1"declare-xORACLE_SID="orcl"9.进入$ORACLE_HOME/network/admin,检查listener.ora:[plain]viewplaincopy[oracle@oracleadmin]$catlistener.ora#listener.oraNetworkConfigurationFile:/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.ora#GeneratedbyOracleconfigurationtools.SID_LIST_LISTENER=(SID_LIST=(SID_DESC=(SID_NAME=orcl)(ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_1)))LISTENER=(DESCRIPTION_LIST=(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.16.33.212)(PORT=1521))))ADR_BASE_LISTENER=/home/oracle/app/oracle重点检查其中的SID,HOST,PORT,ORACLE_HOME是否正确。如果不正确客户端会报告ERROR-ORA-12514:TNS:监听程序当前无法识别连接描述符中请求的服务错误。如果没有问题,进入$ORACLE_HOME/bin,启动监听器:[plain]viewplaincopy[oracle@oraclebin]$./lsnrctlLSNRCTLforLinux:Version11.2.0.3.0-Productionon16-DEC-201411:22:03Copyright(c)1991,2011,Oracle.Allrightsreserved.WelcometoLSNRCTL,type"help"forinformation.[plain]viewplaincopyLSNRCTL>startStarting/home/oracle/app/oracle/product/11.2.0/dbhome_1/bin/tnslsnr:pleasewaitTNSLSNRforLinux:Version11.2.0.3.0-ProductionSystemparameterfileis/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.oraLogmessageswrittento/home/oracle/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xmlListeningon:(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.33.212)(PORT=1521)))Connectingto(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=10.16.33.212)(PORT=1521)))STATUSoftheLISTENER------------------------AliasLISTENERVersionTNSLSNRforLinux:Version11.2.0.3.0-ProductionStartDate16-DEC-201411:22:07Uptime0days0hr.0min.0secTraceLeveloffSecurityON:LocalOSAuthenticationSNMPOFFListenerParameterFile/home/oracle/app/oracle/product/11.2.0/dbhome_1/network/admin/listener.oraListenerLogFile/home/oracle/app/oracle/diag/tnslsnr/oracle/listener/alert/log.xmlListeningEndpointsSummary(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=10.16.33.212)(PORT=1521)))ServicesSummaryService"orcl"has1instance(s).Instance"orcl",statusUNKNOWN,has1handler(s)forthisserviceThecommandcompletedsuccessfullyLSNRCTL>启动正常,使用sqlplus启动数据库:[plain]viewplaincopy[oracle@oraclebin]$./sqlplus'/assysdba'SQL>startupORACLEinstancestarted.TotalSystemGlobalArea960372736bytesFixedSize2234160bytesVariableSize557844688bytesDatabaseBuffers394264576bytesRedoBuffers6029312bytesDatabasemounted.Databaseopened.10.Centos7自带了SELINUX,关掉11.Centos7自带了下一代防火墙firewalld,关掉,否则客户端连接过来会报TNSTimeout异常[plain]viewplaincopy[root@oracle~]#servicefirewalldstopRedirectingto/bin/systemctlstopfirewalld.service现在其它机器就应该可以正常连接并使用Oracle了。另:装Oracle最省事的还是在Oracle自己的EnterpriseLinux上安装。那些依赖,系统参数,等等等都不需要设置了。 参考技术A https://linux.cn/article-5160-1.html

以上是关于如何在 CentOS 7中安装WebSVN的主要内容,如果未能解决你的问题,请参考以下文章

如何在CentOS 7中安装Subversion

如何在 CentOS 7 中安装 pip?

如何在VMware虚拟机中安装CentOS6.7系统(上篇)

如何在 Apache 服务 CentOS 7 中安装模块 libphp5.so

如何在CentOS 7中安装最新Git

如何在 centos 7 perl v5.34.0 中安装 DBD-SQLite