Bash script to create a replica set

Ok so changing the ip maping in the hosts file as you suggest prevented the earlier error. now i get this:

2020-05-12T02:25:58.694+0000 I REPL     [initandlisten] Did not find local voted for document at startup.
2020-05-12T02:25:58.695+0000 I REPL     [initandlisten] Did not find local replica set configuration document at startup;  NoMatchingDocument: Did not find replica set configuration document in local.system.replset
2020-05-12T02:25:58.695+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/var/lib/mongodb/diagnostic.data'
2020-05-12T02:25:58.695+0000 I NETWORK  [initandlisten] waiting for connections on port 27017
2020-05-12T02:25:58.695+0000 I NETWORK  [HostnameCanonicalizationWorker] Starting hostname canonicalization worker

and nothing else afte. should i change something in the rs.initiate. because my mongo if i run rs.status() i get still this error:

> rs.status()
{
	"info" : "run rs.initiate(...) if not yet done for the set",
	"ok" : 0,
	"errmsg" : "no replset config has been received",
	"code" : 94
}

I am really sorry to bother you with this, but i never used ongodb before and i am still learning.