have to set port every time in command line when trying to trigger any Perforce command

后端 未结 2 2000
一向
一向 2021-01-22 01:27

I\'m new to Perforce, need to work in command line, i\'m so confused why all the commands on the tutorial websites all write like $p4 command, but I have to add the

2条回答
  •  醉酒成梦
    2021-01-22 02:02

    Type:

    p4 set P4PORT=myhost:myport
    

    From that point on, "myhost:myport" will be used as the P4PORT when you run commands.

    If you use multiple workspaces/servers, P4CONFIG files make it easy to have different sets of settings (based on your working directory), but for a single value, "p4 set" is a nice persistent one-shot method.

提交回复
热议问题