Search code examples
mesosmarathonmesosphere

How to change Mesos and Marathon port?


I am starting Mesos and Marathon using the following commands:

sudo service mesos-master start

sudo service marathon start

By default, Mesos is run on port 5050 and Marathon is run on port 8080. How can I change these default ports?


Solution

  • For marathon

    create file named http_port in /etc/marathon/conf/ with port you want

    for example

    cat 8081 > /etc/marathon/conf/http_port
    

    For mesos master

    create file named port in /etc/mesos-master/ with port you want

    for example

    cat 6060 > /etc/mesos-master/port