oracle ohs 安装文档,最后重启OHS 代码如下 cd $MW_HOME/Oracle_WT1/instances/instance1/bin ./opmnctl startall # The...

一般在实施项目时,客户都希望域名和地址简单明了。但是OHS为了安全起见是不允许使用端口号小于1024,小于1024端口号是属于root,常见的OHS都是有自己的安装用户(Oracle)。因此如果想要使用小于1024的端口,需要修改.apachectl的控制权。

步骤:

1.关闭OHS

2.重新设置监听端口

3.改变 . apachectl的权限

4.重启OHS

关闭OHS

代码如下

# assuming your MW_HOME is /u00/app/oracle/product/fmw-11.1.1

export MW_HOME=http://www.3lian.com/u00/app/oracle/product/fmw-11.1.1

cd $MW_HOME/Oracle_WT1/instances/instance1/bin

./opmnctl stopall

重新设置监听端口,在这里我们设置为80

代码如下

# assuming you are still connected as oracle user to your sevrer

cd $MW_HOME/Oracle_WT1/instances/instance1/config/OHS/ohs1

cp httpd.conf httpd.conf.save

vi httpd.conf

# Now go to the line with Listen

(normally 777x)

# and replace the port number to port 80

Listen 80

# save the changes

修改权限

代码如下

# assuming you are connected to the server as root user

# use the MW_HOME from step 1

cd $MW_HOME/Oracle_WT1/ohs/bin

# be aware, we have to modify the hidden file .apachectl (the dot is correct)

ls -la .apachectl

-rwxr-x--- 1 oracle oinstall 13278 Dec 17 03:54 .apachectl

chown root .apachectl

chmod 6750 .apachectl

ls -la .apachectl

-rwsr-s--- 1 root oinstall 13278 Dec 17 03:54 .apachectl

注意:在Linux以”.”开头的文件默认为隐藏。

最后重启OHS

代码如下

cd $MW_HOME/Oracle_WT1/instances/instance1/bin

./opmnctl startall

# Then check the status with the option -l

# to see if your Oracle HTTP Server is up and

# the option -l display the used ports (see picture below)

./opmnctl status –l

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值