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

  • Ubuntu 20.04 Essentials
  • Neil Smyth
  • 116字
  • 2021-06-11 17:39:38

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

主站蜘蛛池模板: 光山县| 太白县| 红河县| 仙居县| 双桥区| 兴海县| 汤阴县| 金阳县| 河源市| 诸暨市| 宁波市| 临洮县| 上杭县| 大姚县| 册亨县| 德钦县| 南川市| 弋阳县| 红安县| 宁强县| 阿拉尔市| 禹城市| 陆丰市| 徐汇区| 巧家县| 东丰县| 车险| 晋中市| 新巴尔虎左旗| 乐陵市| 康保县| 巴马| 万荣县| 温州市| 台湾省| 华安县| 常德市| 绥化市| 阳春市| 尚义县| 白河县|