官术网_书友最值得收藏!

8.2 Installing and Enabling Cockpit

Cockpit is generally not installed on Ubuntu by default, but can be set up and enabled in a few simple steps. The first step is to install the Cockpit package as follows:

# apt install cockpit

Next, the Cockpit socket service needs to be enabled:

# systemctl enable --now cockpit.socket

Finally, the necessary ports need to be opened on the firewall to allow remote browser connections to reach Cockpit if a firewall is enabled on your system (for details on firewalls, refer to the chapter entitled “Ubuntu Firewall Basics”).

If ufw is enabled:

# ufw allow 9090

If firewalld is enabled:

# firewall-cmd --add-service=cockpit --permanent

# firewall-cmd --reload

主站蜘蛛池模板: 梅河口市| 塘沽区| 曲水县| 吴江市| 平果县| 祁门县| 陵川县| 札达县| 鄱阳县| 海盐县| 彩票| 黄梅县| 榆社县| 英山县| 曲水县| 宜兰市| 武汉市| 西吉县| 全椒县| 潢川县| 祁东县| 古浪县| 北宁市| 平顶山市| 资中县| 宜兰市| 呼玛县| 黄浦区| 仙游县| 宿州市| 卢湾区| 泰州市| 怀远县| 綦江县| 普安县| 南丹县| 安国市| 扶风县| 平武县| 玉树县| 涪陵区|