You must be a cluster administrator to perform this task.
The repository service is the service that handles deployment.
For csh or tcsh, use cshrc.platform:
source /opt/ego/cshrc.platform
For sh, ksh, or bash, use profile.platform:
/opt/ego/profile.platform
egosh service stop RS
<ego:EnvironmentVariable name="REPOSITORY_SERVICE_PORT">7875</ego:EnvironmentVariable>
egosh ego restart