Thứ Ba, 8 tháng 9, 2009

How to Configure Oracle Web Cache to Listen on Port < 1024

10.0 How to Configure Oracle Web Cache to Listen on Port <>

On most Unix platforms, a process without root privilege cannot listen on ports <>

  1. Through the Web Cache Manager, change process identity to the desired running process identity, such as nobody/nobody; change Oracle Web Cache listening port to the desired port, such as 80;
  2. log in as root;
  3. change the owner of the executable 'webcached' to root;


$ chown root /opt/oracle/webcache/bin/webcached

  1. change the group of the executable 'webcached' to the group id of the desired running process identity, such as nobody:


$ chgrp /opt/oracle/webcache/bin/webcached

  1. add set-user-id permission to the executable 'webcached';


$ chmod u+s /opt/oracle/webcache/bin/webcached

  1. exit from root;
  2. start Oracle Web Cache through webcachectl. Oracle Web Cache should be listening on the desired port with the desired process identity (nobody/nobody).


$ /opt/oracle/webcache/bin/webcachectl start

Note that NOT running Oracle Web Cache as root will limit the number of connection handles that Oracle Web Cache can use to the operating system's hard-coded file descriptor limit. See Also: Section 5.0.

Không có nhận xét nào: