How to show real IP instead of ‘localhost’ in Web UI and How to restart

Hi guys,

I’m trying to deploy a 6-node universe in my local server, and I followed the doc without all the AWS parameters.
https://docs.yugabyte.com/latest/deploy/manual-deployment/

It worked, but in the Web UI it shows localhost:7000 which I thought it should be like 192.168.1.101:7000, the real IP instead of localhost.

And one more question:
If I reboot my server, how can I restart the YB-Master and YB-TServer on it?

Thanks~

Hello @Kai, it would be helpful if you could share the command lines for both master and tserver that you used to perform the manual deployment.

hi @sanketh , thank you for your reply. I used configuration file to create masters and tservers.

  • YB-Master

Command is the same as described in Start YB-Masters

./bin/yb-master --flagfile master.conf >& /home/centos/disk1/yb-master.out &

And the master.conf:

--master_addresses=192.168.1.101:7100,192.168.1.102:7100,192.168.1.103:7100
--rpc_bind_addresses=192.168.1.101:7100
--fs_data_dirs=/home/centos/disk1,/home/centos/disk2
  • YB-TServer

Command is also from Start YB- TServers

./bin/yb-tserver --flagfile tserver.conf >& /home/centos/disk1/yb-tserver.out &

And the tserver.conf:

--tserver_master_addrs=192.168.1.101:7100,192.168.1.102:7100,192.168.1.103:7100
--rpc_bind_addresses=192.168.1.101:9100
--start_pgsql_proxy
--pgsql_proxy_bind_address=192.168.1.101:5433
--cql_proxy_bind_address=192.168.1.101:9042
--fs_data_dirs=/home/centos/disk1,/home/centos/disk2

Relative to the USER GUIDES, I just modified the IP and remove the placement part for I didn’;t use the AWS.

hi @Kai:

Can you try setting this argument to corresponding IP (no port needed)

--webserver_interface=192.168.1.101

for each yb-master and yb-tserver?

That’s no different than starting the yb-master/yb-tserver processes for the first time. [Usually, you want to have some cron for this or convert this to a systemd type service that automatically restarts the process at startup.]

Thank you @kannan, it solved all my problems. Thank you so muck.