[SCM] source code management-perforce: coexistence of multiple perfoce and proxies on Windows

Source: Internet
Author: User
Tags perforce

 

In Windows, the installation file performance.exe can install perforce or proxy as Windows Services. The default services are perforce and perforce proxy respectively. However, when multiple performanceor proxyservicesare installed on the same Windows system, you must use svcinst.exe (which can be obtained from the perforce Server Installation Directory) to manually install services.

 

Install the second perforce Server

Suppose we already have a perforce server installed in c: \ perforce and runs the service named perforce. Now let's assume that the root of the second perforce server is C: \ p4root2 and the service name is performance2.

1) Create the p4root directory

Mkdir c: \ p4root2

2) Copy p4d to the p4root directory and change the name to p4s, indicating that the server will run as a service. Copy the beilicensefile to p4rootto copy svcinst.exe to p4root.

Copy c: \ perforce \ p4d.exe c: \ p4root2
Copy c: \ perforce \ p4d.exe c: \ p4root2 \ p4s.exe
Install {duplicate license} into C: \ p4root2 \ license
Copy c: \ perforce \ svcinst.exe c: \ p4root2 \ svcinst.exe
# Copy c: \ perforce \ svcinst. dll c: \ p4root2 \ svcinst. dll

For versions earlier than 2008.1, you also need to copy svcinst. dll.

3) use the service for InstallationProgramTo install the performance2 service. Switch to the p4root directory before installation.

Cd c: \ p4root2
Svcinst create-N performance2-E c: \ p4root2 \ p4s.exe-

4) set the performance2 service parameters. Use client p4.exe to perform the following settings.

P4 set-s performance2 p4root = C: \ p4root2
P4 set-s performance2 p4port = 1667
P4 set-s performance2 p4log = Log
P4 set-s performance2 p4journal = Journal

View the parameter settings and use P4 set-s performance2.

5) use the service installer to start the service as follows:

Svcinst start-N performance2

NOTE: If p4root points to a network path, you must use the Administrator account to create a service. You can use-R and-U for svcinst to specify the administrator account.

Svcinst create-N performance2-E c: \ p4root2 \ p4s.exe-a-r-u Username Password

 

2. Create a proxy named aaa

The process is the same as creating a perforce service. The script is as follows:

Mkdir c: \ p4proxyaaa
Copy c: \ Program Files \ perforce \ proxy \ p4p.exe c: \ p4proxyaaa \ p4p.exe
Copy c: \ p4proxyaaa \ p4p.exe c: \ p4proxyaaa \ p4ps.exe
Svcinst create-n "perforce proxy AAA"-E c: \ p4proxyaaa \ p4ps.exe-
P4 set-s "perforce proxy AAA" p4port = 1999
P4 set-s "perforce proxy AAA" p4log = Log
P4 set-s "perforce proxy AAA" p4pcache = c: \ p4proxyaaa
P4 set-s "perforce proxy AAA" p4target = perforce: 1666
P4 set-s "perforce proxy AAA"

Svcinst start-n "perforce proxy AAA"

 

Reference: http://kb.perforce.com/article/35

 
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.