美文网首页
修改OHS端口

修改OHS端口

作者: 阿畅00000 | 来源:发表于2023-05-04 13:31 被阅读0次

到ohs服务器路径

/oracle/fmwhome/Oracle/Middleware/Oracle_Home/user_projects/domains/ohs_domain/config/fmwconfig/components/OHS/instances/ohs1

下更改httpd.conf配置文件:
Listen 7777 更改为 Listen 80
ServerName ohs1.xxxx.cn:7777 更改为 ServerName ohs1.xxxx.cn:80

# The Listen directive below has a comment preceding it that is used
# by tooling which updates the configuration.  Do not delete the comment.
#[Listen] OHS_LISTEN_PORT
Listen 80
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
# If your host doesn't have a registered DNS name, enter its IP address here.
ServerName  ohs1.xxxx.cn:80

保存更改,退出vi编辑
到ohs服务器路径

/oracle/fmwhome/Oracle/Middleware/Oracle_Home/ohs/bin/

以root用户执行以下命令

[root@ohs1 bin]# chown root launch
[root@ohs1 bin]# chmod 4750 launch

重启服务器
到ohs服务器路径

/oracle/fmwhome/Oracle/Middleware/Oracle_Home/user_projects/domains/ohs_domain/bin

关闭ohs1实例

[oracle@ohs1 bin]$ ./stopComponent.sh ohs1

开启ohs1实例

[oracle@ohs1 bin]$ ./startComponent.sh ohs1

⚠️ ohs1实例启动,建议使用非root用户

相关文章

网友评论

      本文标题:修改OHS端口

      本文链接:https://www.haomeiwen.com/subject/uyuxsdtx.html