How make erpnext multi tenant using multi ports?

hello erpnext community , how to set erpnext for multi tenant using ports
examples :
127.0.0.1:8000 => site 1
127.0.0.1:8001 => site 2
127.0.0.1:8002 = > site 3

Port based multitenancy

You can create a new site and make run it on a different port (while the first one runs on port 80).

  • Switch off DNS based multitenancy (once)
    bench config dns_multitenant off

  • Create a new site
    bench new-site site2name

  • Set port
    bench set-nginx-port site2name 81

  • Re generate nginx config
    bench setup nginx

  • Reload nginx
    sudo service nginx reload