一、停止監聽
[oracle@oradb01 admin]$ lsnrctl stop
二、將listener.ora中的預設埠由1521 改為1522
vi $oracle_home/network/admin/listener.ora
listener =
(description_list =
(description =
(address = (protocol = tcp)(host = oradb01)(port =1522))))
三、.將listener.ora中配置的listener拷貝到tnsnames.ora
vi $oracle_home/network/admin/tnsnames.ora
listener =
(description_list =
(description =
(address = (protocol = tcp)(host = oradb01)(port = 1522))
))
四、啟動監聽並手動註冊
[oracle@oradb01 admin]$ lsnrctl start
sql> alter system register;
system altered.
sql> alter system set local_listener=listener;
system altered.
五、檢視監聽狀態
[oracle@oradb01 admin]$ lsnrctl status
lsnrctl for linux: version 11.2.0.3.0 - production on 16-nov-2011 19:00:00
connecting to (description=(address=(protocol=tcp)(host=oradb01)(port=1522)))
status of the listener
------------------------
alias listener
version tnslsnr for linux: version 11.2.0.3.0 - production
start date 16-nov-2011 18:33:28
uptime 0 days 0 hr. 26 min. 31 sec
trace level off
security on: local os authentication
snmp off
listener parameter file /opt/ora11g/product/11.2.3/db_1/network/admin/listener.ora
listener log file /opt/ora11g/diag/tnslsnr/orcl/listener/alert/log.xml
listening endpoints summary...
(description=(address=(protocol=tcp)(host=oradb01)(port=1522)))
services summary...
service "orcl" has 1 instance(s).
instance "orcl", status ready, has 1 handler(s) for this service...
service "orclxdb" has 1 instance(s).
instance "orcl", status ready, has 1 handler(s) for this service...
the command completed successfully
參考文章:
更改oracle 預設的1521埠
更改oracle 預設的1521埠,只需要在 oracle home network admin目錄下修改或者新建乙個listener.ora檔案即可 修改完成以後,直接用lsnrctl reload命令即可完成埠配置。例如 listener description list description...
更改gitlab預設埠
安裝環境 centos 7.2 安裝版本 gitlab ce 9.2.5 ce.0.el7.x86 64 yum install gitlab ce等待安裝完成之後,預設已經啟動,gitlab監聽的是80埠,所以可以直接ip訪問,或者可以修改如下配置檔案新增網域名稱 etc gitlab gitla...
更改gitlab預設埠
更改gitlab預設埠 標籤 gitlab 埠 更改gitlab預設埠 安裝環境 centos 7.2 安裝版本 gitlab ce 9.2.5 ce.0.el7.x86 64 yuminstallgitlab ce 1 等待安裝完成之後,預設已經啟動,gitlab監聽的是80埠,所以可以直接ip訪...