• 操持Linux下Oracle Tomcat 8080端口争持2


       本源:网海拾贝





    三、操持要领二

    将xmlDB的端口转换为其它端口,此例转换为8082

    SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text

    ()', 8082));

    Call completed.

    SQL> exec dbms_xdb.cfg_refresh;

    PL/SQL procedure successfully completed.

    将ftp端口由2100转换为2111

    SQL> call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/ftpconfig/ftp-port/text

    ()',2111));

    Call completed.

    SQL> commit;

    Commit complete.

    SQL> exec dbms_xdb.cfg_refresh;

    PL/SQL procedure successfully completed.

    SQL>

    SQL> select dbms_xdb.cfg_get from dual;

    CFG_GET

    --------------------------------------------------------------------------------

    SQL>

    反省转换成效,发现8080,2100端口截止运用,而8082、2111端口初阶运用。

    [root@olivenan root]# lsof -i :8080 -n

    [root@olivenan root]# lsof -i :8082 -n

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

    tnslsnr 1031 oracle 12u IPv4 18456 TCP *:8082 (LISTEN)

    [root@olivenan bin]# lsof -i :2100 -n

    [root@olivenan root]# lsof -i :2111 -n

    COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME

    tnslsnr 1031 oracle 13u IPv4 18462 TCP *:2111 (LISTEN)

    [root@olivenan root]#

    四、lsof呼吁的运用

    lsof -i TCP:port -n

    lsof -i UDP:port -n

    lsof -i :port -n

    # lsof -i tcp:8080 -n

    以下是转载

    AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶AV女伶

    注:上面是操持和XDB争持的,我发现年夜部门人问的是和OSE(oracle servlet engine)争持的,情景是访问8080端口时,看到的是一个强硬的小

    飞猪,呵呵。

    上面是操持要领:

    我的oracle是装在D盘,巨匠可以凭据本情面景找

    D:oracleora90jisinstall>sess_sh -u sys/change_on_install -role SYSDBA -s jdbc:oracle:oci8:@oradb(这里填你的管事名,我的是

    oradb)

    --Session Shell--

    --type "help" at the command line for help message

     $ @serverendp.ssh admin 4321 4322 -register

     $ exit

    就能把原本的8080换成4321,把9090换成4322.




    版权声明: 原创作品,许愿转载,转载时请务必以超链接体式式子标明文章 原始出处 、作者信息和本声明。不然将清查司法责任。

  • 相关阅读:
    NAT和PAT
    谷歌浏览器如何正确离线网页
    安全
    VLAN
    交换
    动态路由
    静态路由
    配置Cisco网络设备
    导数表和基本积分表
    HNOI/AHOI2018题解
  • 原文地址:https://www.cnblogs.com/zgqjymx/p/1976165.html
Copyright © 2020-2023  润新知