How do you configure (change) the default ports for Dgraph alpha and zero?

i have the same problem in this session , it retry connection to the port many times ,i install the dgraph client in my ubuntu server , have you got any methods to solove this problem now ?