linuxvncoracle安装手册

上传人:自*** 文档编号:79637574 上传时间:2019-02-17 格式:DOC 页数:30 大小:7.99MB
返回 下载 相关 举报
linuxvncoracle安装手册_第1页
第1页 / 共30页
linuxvncoracle安装手册_第2页
第2页 / 共30页
linuxvncoracle安装手册_第3页
第3页 / 共30页
linuxvncoracle安装手册_第4页
第4页 / 共30页
linuxvncoracle安装手册_第5页
第5页 / 共30页
点击查看更多>>
资源描述

《linuxvncoracle安装手册》由会员分享,可在线阅读,更多相关《linuxvncoracle安装手册(30页珍藏版)》请在金锄头文库上搜索。

1、Linux+VNC+Oracle安装手册作者:王岳1. 安装软件版本1.1 LinuxCentOS6.2、CentOS6.41.2 VNCtigervnc-server-1.1.0-5.el6_4.1.x86_641.3 OracleOracle 11g2. 安装VNC2.1 安装vncserver服务端和客户端rootlocalhost # yuminstalltigervnctigervnc-servery2.2 安装fontforgerootlocalhost # yuminstallfontforge-y2.3 安装桌面软件rootlocalhost # yumgroupinstall

2、Desktopy2.4 添加vncserver服务启动参数rootlocalhost /# vi /etc/sysconfig/vncserversVNCSERVERS=1:root 2:oracleVNCSERVERARGS1=-geometry 1024x768VNCSERVERARGS2=-geometry 1024x768这里的1和2代表使用VNC时可以用root或oracle用户登录,其连接接口号是1:root=5901、2:oracle=5902。2.5 配置相应的用户rootlocalhost /# vncpasswdPassword:Verify:rootlocalhost /

3、# su - oracleoraclelocalhost $ vncpasswdPassword:Verify:生成配置文件:rootlocalhost /# vncserveroraclelocalhost $ vncserver设置配置文件:rootlocalhost # vi.vnc/xstartuporaclelocalhost $ vi.vnc/xstartup将下列内容加入到文件最后:#twm&gnome-session&2.6 防火墙开放端口在linux使用防火墙的情况下通过VNC连接,需要打开端口5901、5902或创建的VNC用户端口。需要修改配置文件iptables,然后重

4、启iptables服务。rootlocalhost # vi/etc/sysconfig/iptables此文件下会有一个默认22端口开放配置,按22的配置参加5901、5902即可:-A INPUT -m state -state NEW -m tcp -p tcp -dport 22 -j ACCEPT-A INPUT -m state -state NEW -m tcp -p tcp -dport 5901 -j ACCEPT-A INPUT -m state -state NEW -m tcp -p tcp -dport 5902 -j ACCEPT-A INPUT -m state

5、-state NEW -m tcp -p tcp -dport 1521 -j ACCEPT随便把数据库的端口1521也开放。保存后重启:rootlocalhost # /sbin/serviceiptablesrestart2.7 启停操作启动:service vncserver start停止:service vncserver stop启停:service vncserver restart正常启动结果:正在启动 VNC 服务器:1:root New linuxjcq0:1 (root) desktop is linuxjcq0:1Starting applications specif

6、ied in /root/.vnc/xstartupLog file is /root/.vnc/linuxjcq0:1.log2:oracle New linuxjcq0:2 (oracle) desktop is linuxjcq0:2Starting applications specified in /home/oracle/.vnc/xstartupLog file is /home/oracle/.vnc/linuxjcq0:2.log确定2.8 问题解决方式2.8.1 查看是否已安装VNCrootlocalhost # rpm -qa | grep vnc显示版本如下:tiger

7、vnc-server-1.1.0-5.el6_4.1.x86_64tigervnc-1.1.0-5.el6_4.1.x86_64如没有任何显示,说明没有安装VNC。2.8.2 无法正常启动或停止VNC服务rootlocalhost # ps -ef | grep -i vnc | grep -v grep把VNC所有进程kill掉。2.8.3 启动报错Warning: testdb:1 is taken because of /tmp/.X1-lock处理过程:rootlocalhost # rm -f /tmp/.X1-lock启动尝试,仍然报错:Warning: testdb:1 is t

8、aken because of /tmp/.X11-unix/X1同样的处理过程:rootlocalhost # rm -f /tmp/.X11-unix/X1如还有类似tmp目录下文件报错,继续删除该报错文件。WARNING: the first attempt to star Xvnc failed,possibly because the font catalog is not properly configured, attempting to determine an appropriate font path for this system and restart Xvnc usi

9、ng that font path .解决办法:更新字体库,时间较长。rootlocalhost # yum -y upgrade3. 安装Oracle数据库3.1 创建oracle用户及用户组rootlocalhost # groupadd oinstallrootlocalhost # groupadd dbarootlocalhost # useradd -g oinstall -G dba oraclerootlocalhost # passwd oracle3.2 创建oracle需要的文件夹及赋予权限rootlocalhost # usermod -g oinstall -G db

10、a oraclerootlocalhost # mkdir -p /home/oracle/approotlocalhost # mkdir /home/oracle/app/oraclerootlocalhost # mkdir /home/oracle/app/oradatarootlocalhost # mkdir /home/oracle/app/oracle/productrootlocalhost # chown -R oracle:oinstall /home/oraclerootlocalhost # chmod -R 755 /home/oracle3.3 修改系统核心参数3

11、.3.1 修改内核rootlocalhost # vi /etc/sysctl.conf将下列内容加入到文件最后:fs.file-max = 6815744fs.aio-max-nr = 1048576kernel.shmall = 2097152kernel.shmmax = 2147483648kernel.shmmni = 4096kernel.sem = 250 32000 100 128net.ipv4.ip_local_port_range = 9000 65500net.core.rmem_default = 4194304net.core.rmem_max = 4194304n

12、et.core.wmem_default = 262144net.core.wmem_max = 1048576rootlocalhost # sysctl -p3.3.2 为oracle用户设置Shell限制rootlocalhost # vi /etc/security/limits.conf将下列内容加入到 # End of file 之前:oracle soft nproc 2047oracle hard nproc 16384oracle soft nofile 1024oracle hard nofile 655363.3.3 系统环境配置rootlocalhost # vi /e

13、tc/pam.d/login将下列内容加入到文件最后:session required pam_limits.sosession required /lib/security/pam_limits.sorootlocalhost # vi /etc/profile将下列内容加入到文件最后:if $USER = oracle ; then if $SHELL = /bin/ksh ; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fifirootlocalhost # vi /etc/csh.login将下列

14、内容加入到文件最后:if ( $USER = oracle) then limit maxproc 16384 limit descriptors 65536endifrootlocalhost # vi /home/oracle/.bash_profile将下列内容加入到文件最后:umask 022export ORACLE_BASE=/home/oracle/appexport ORACLE_HOME=$ORACLE_BASE/oracle/product/11.2.0/dbhome_1export ORACLE_SID=orclexport PATH=$PATH:$HOME/bin:$ORACLE_HOME/binexport LD_LIBRARY_PATH=$ORACLE_HOME/lib:/usr/lib执行下面内容让配置文件生效:rootlocalhost # source /home/oracle/.bash_profile执行下面内容安装

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 模板/表格

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号