修改OHS端口

到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用户

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 准备实验环境 渗透非授权系统的弊端 搭建自己的实验环境 安装虚拟机 微软最新版软件 http://msdn .mi...
    安全牛课堂阅读 1,318评论 0 0
  • 一、目录结构 目录说明/binBinary的缩写,这个目录存放最经常使用的命令;/sbins就是Super Use...
    CJ21阅读 1,676评论 0 15
  • Spring Cloud为开发人员提供了快速构建分布式系统中一些常见模式的工具(例如配置管理,服务发现,断路器,智...
    卡卡罗2017阅读 134,841评论 18 139
  • 本章内容 ◆ Web架构介绍◆ 负载均衡介绍◆ 反向代理介绍◆ HAProxy介绍◆ HAProxy结构◆ HAP...
    Liang_JC阅读 830评论 0 0
  • 常用配置指令说明 1. ServerRoot:服务器的基础目录,一般来说它将包含conf/和logs/子目录,其它...
    小僧有礼了阅读 4,541评论 0 5