介绍
- RGW提供的是REST接口:客户端通过http与其进行交互,完成数据的增删改查等管理操作
- radosgw用在需要使用RESTful API接口访问ceph数据的场合,因此在使用RBD即块存储或者使用cephFS的场合可以不用启用radosgw功能
安装radosgw
root@onda:~# apt install radosgw -y
在部署服务器上往客户端部署radosgw服务
[root@node1 cephcluster]# ceph-deploy rgw create 192.168.0.127
...
...
[ceph_deploy.rgw][INFO ] The Ceph Object Gateway (RGW) is now running on host 192.168.0.127 and default port 7480
在客户端查看端口
root@onda:~# ss -tunlp
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
udp UNCONN 0 0 0.0.0.0:5353 0.0.0.0:* users:(("avahi-daemon",pid=660,fd=12))
udp UNCONN 0 0 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=568,fd=13))
udp UNCONN 0 0 0.0.0.0:35333 0.0.0.0:* users:(("avahi-daemon",pid=660,fd=14))
udp UNCONN 0 0 0.0.0.0:631 0.0.0.0:* users:(("cups-browsed",pid=1510,fd=7))
udp UNCONN 0 0 [::]:5353 [::]:* users:(("avahi-daemon",pid=660,fd=13))
udp UNCONN 0 0 [::]:52724 [::]:* users:(("avahi-daemon",pid=660,fd=15))
tcp LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=568,fd=14))
tcp LISTEN 0 4096 0.0.0.0:7480 0.0.0.0:* users:(("radosgw",pid=3429,fd=53))
tcp LISTEN 0 128 127.0.0.1:631 0.0.0.0:* users:(("cupsd",pid=827,fd=7))
tcp LISTEN 0 128 0.0.0.0:22 0.0.0.0:* users:(("sshd",pid=816,fd=3))
tcp LISTEN 0 4096 [::]:7480 [::]:* users:(("radosgw",pid=3429,fd=54))
tcp LISTEN 0 128 [::1]:631 [::]:* users:(("cupsd",pid=827,fd=6))
tcp LISTEN 0 128 [::]:22 [::]:* users:(("sshd",pid=816,fd=4))