国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 網管 > 服務器 > 正文

怎么更改OHS端口為80

2020-05-27 13:29:59
字體:
來源:轉載
供稿:網友

   一般在實施項目時,客戶都希望域名和地址簡單明了。但是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=/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

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 辽阳市| 五家渠市| 自贡市| 叶城县| 浪卡子县| 正蓝旗| 南京市| 英山县| 肃南| 上栗县| 咸阳市| 孙吴县| 华安县| 西充县| 白朗县| 密云县| 连云港市| 沂南县| 邳州市| 南郑县| 德格县| 黄梅县| 邵武市| 剑川县| 阳新县| 宜兰市| 安乡县| 潞西市| 开远市| 连城县| 瓦房店市| 饶河县| 洪泽县| 天门市| 登封市| 西华县| 古交市| 成都市| 梅河口市| 剑河县| 曲阳县|