[SCM] source code management-perforce Server Management

Source: Internet
Author: User
Tags perforce
P4d.exe is used to manage p4server in the 1st region of a p4server.
2) You can also use the sub-command admin of P4 to execute some p4server management on a remote machine. In this case, you need to set environment variables such as p4port and p4user.

3rd, use p4admin.exe of uifor management.

Refer:
Http://www.perforce.com/perforce/doc.current/manuals/cmdref/admin.html

Http://www.perforce.com/perforce/doc.current/manuals/p4sag/index.html

 

2. p4d.exe

 

110000p4d.exe

Note:

-JC: Creates a checkpoint, saves the current Journal as journal. NNN, and re-creates a journal to record operations after this checkpoint;

-JD: only creates checkpoints without changing journal;

-JJ: No checkpoint is created, but the current Journal is saved as journal. NNN, and a new journal is created to record new operations;

-JR: Use checkpoint and journal to restore the database of the server;

 

2) In addition to starting the server, p4d can also be used to manage some servers, such as backup and recovery of p4server and upgrade of p4server, such

Create the checkpoint of the compressed GZ: p4d-r $ p4root-z-JC
Restore metadata from checkpoint.3: p4d-r $ p4root-z-Jr checkpoint.3

Upgrade p4server: p4d-r server_root-J journal_file-Xu

 

 

Three P4 admin sub-commands

1) P4 Admin

2) Instances

Stop p4server + create checkpoint + create Journal

 

3) P4 admin updatespecdepot

We know that P4 server is used to manage file modifications, but how do we record the modification history for users and permissions of p4server and other management operations. It is recorded through the depot \ spec of P4.
First, create the depot of \ SPEC:

 

Then, P4 admin updatespecdepot-A is called to follow the new \ spec depot:

 

4. p4admin UI for management

 

 

You can use p4admin of the GUI to manage all the p4server except backup and recovery:
1) Check the license usage. There are no active users recently;
2) create users, groups, and modify permissions;
3) Use obliterate to completely delete p4server files;
4) use updatespecdepot to follow the new spec depot;
5) Use processmonitor to check the process of p4server;
6) You can manage multiple p4servers;
7) You can view a user's Source code ;
8) You can view the root log path of the server;

 

 

Complete!

 

 

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.