Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Ceph changes the default port of object storage

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Before you start, you can refer to my previous blog to build object storage, introduction and installation of Ceph object storage.

Civetweb runs by default on port 7480. To change the default port (for example, to port 80), modify the Ceph configuration file in the working directory of the management server, add a section titled [client.rgw], and replace it with the hostname of your Ceph Object Gateway node

For example, if your node name is ceph-node1, add the following after the [global] section

[client.rgw.ceph-node1]

Rgw_frontends = "civetweb port=80"

Note: there is no space between the port after civetweb port= and =. The [client.rgw.ceph-node1] title identifies this part of the Ceph configuration file as configuring the Ceph Storage Cluster client, where the client type is Ceph object gateway (i.e. rgw) and the instance name is ceph-node1.

Push the updated configuration file to your Ceph object gateway node (and other Ceph nodes)

[root@ceph-deploy-admin ~] # ceph-deploy--overwrite-conf config push ceph-node1

Restart the service for the configuration to take effect

[root@ceph-deploy-admin ~] # systemctl restart ceph-radosgw@rgw.ceph-node1.service

Note: only the port number of the radosgw of the ceph-node1 node has been modified. If other nodes also need to be modified, repeat the above steps.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report