所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

OceanStor 2200 V3&2600 V3 存储系统 V300R005 命令参考

"本文档针对DeviceManager管理软件提供的CLI(Command Line Interface)命令行,介绍如何使用CLI设置、管理存储系统,以及按功能分类详细介绍各命令的使用方法。"
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
change service ftp

change service ftp

命令功能

change service ftp命令用于修改FTP配置。

命令格式

change service ftp { anonymous_access_switch=? | anonymous_max_connection=? | client_max_connection=? | max_connections=? | onymous_max_connection=? | running_status=? | idle_time=? | anonymous_homedir=? | fxp_enabled=? | buffer_size=? | anonymous_upload=? | client_charset=? | umask=? | ftps_model=? | ftp_enabled=? | disp_file_number=? | disp_subdir_depth=? } *

参数说明

参数

参数说明

取值

anonymous_access_switch=? 匿名用户访问的开关。

取值为yes或no。

  • yes:允许匿名用户访问FTP服务。
  • no:禁止匿名用户访问FTP服务。
anonymous_max_connection=? 匿名用户最大连接数。

取值为1~128的整数。

client_max_connection=? 单个客户端最大连接数。

取值为1~32的整数。

max_connections=? 最大连接数。

取值为1~192的整数。

idle_time=? 连接空闲时间。

取值为1~1440的整数。

onymous_max_connection=? 每个用户的最大连接数。

取值为1~32的整数。

running_status=? FTP服务运行状态。

取值为stop或running。

  • stop:停止FTP服务。
  • running:启动FTP服务。
anonymous_homedir=? 匿名用户工作目录。

取值为1~1023个字符,该路径由文件系统名称加上用户自创建目录组成。

fxp_enabled=? FXP功能状态。

取值为yes或no。

  • yes:使能FXP功能。
  • no:禁止FXP功能。
buffer_size=? FTP缓存大小,该参数只能在developer模式下执行。登录developer模式的方法,详情请参见《受限命令参考》。

取值为8192~1048576字节。

anonymous_upload=? 匿名用户上传权限的开关。

取值为true或false。

  • true:允许上传。
  • false:不允许上传。
默认值为true。
client_charset=? 客户端字符集编码,此配置需重启服务才能生效。

取值为utf-8或gbk。

  • utf-8:客户端采用utf-8编码。
  • gbk:客户端采用gbk编码。
默认值为utf-8。
umask=? 文件和目录的umask,此配置需重启服务才能生效。

umask格式为:000:000,冒号前面部分为文件umask,后面部分为目录umask,各部分取值范围为000~777的八进制整数。

ftp_enabled=? FTPS显式模式下的FTP功能开关。

取值为yes或no。

  • yes:使能FTP功能。
  • no:禁止FTP功能。
ftps_mode=? FTPS模式选择。

取值为explicit或implicit。

  • explicit:FTPS显式模式。
  • implicit:FTPS隐式模式。
disp_file_number=? 参数给出文件显示的最大数目。

取值范围为1~1000000的整数。

disp_subdir_depth=? 参数给出子目录深度显示的最大数目。

取值范围为1~100的整数。

级别

管理员

使用指南

  • 可以通过执行show file_system general命令查询文件系统名称。
  • 该命令不支持OceanStor 2200 V3存储系统。

使用实例

  • 显示FTP配置。

    admin:/>show service ftp
    Running Status : Stop
    Anonymous Homedir : /fs0/anonymous
    Max Connection : 100
    Anonymous Access Switch : Off
    Client Max Connection : 10
    Onymous Max Connection : 10
    Anonymous Max Connection : 100
    Idle Time : 10
    FXP Enabled: No
    Buffer Size : 8192
    Anonymous Upload : True
    Client Charset : utf-8
    Umask : 000:000
    FTP Enabled  :No
    FTPS Mode  :Explicit
    Display Files Number : 10000
    Display Subdirectories Depth: 5
  • 启用FXP配置。

    admin:/>change service ftp fxp_enabled=yes
    WARNING:You are about to configure the FTP service. This operation may cause the following issues: 
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access. 
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks. 
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable. 
    Suggestion: 
    Before performing any of these three operations, ensure that each of them is needed. 
    Have you read warning message carefully?(y/n)y
     
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • 启用FTPS隐式模式。

    admin:/> change service ftp ftps_model=implicit
    WARNING: You are about to enable the implicit FTPS mode. This operation disables the plaintext FTP service and restarts services automatically. 
    Suggestion: Ensure that you want to perform the operation.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • FTPS显式模式下开启FTP功能。

    admin:/>change service ftp ftps_model=explicit ftp_enabled=yes
    WARNING: You are about to enable the explicit FTPS mode and the plaintext FTP service (with potential security risks). This operation restarts services automatically. 
    Suggestion: Ensure that you want to perform the operation.
    Have you read warning message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • 修改FTP配置。

    admin:/>change service ftp anonymous_access_switch=no anonymous_max_connection=100 client_max_connection=10 idle_time=1400 max_connections=10 onymous_max_connection=10 running_status=running anonymous_homedir=/fs0/anonymous fxp_enabled=no
    WARNING:You are about to configure the FTP service. This operation may cause the following issues: 
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access. 
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks. 
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable. 
    Suggestion: 
    Before performing any of these three operations, ensure that each of them is needed. 
    Have you read warning message carefully?(y/n)y
     
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • 关闭FTP服务。

    admin:/>change service ftp running_status=stop
    WARNING:You are about to configure the FTP service. This operation may cause the following issues: 
    1. If the FTP service is enabled, this operation enables insecure FTP protocol for external access, which may cause user information to be intercepted and bring security risks to file data access. 
    2. If the FXP function is enabled, this operation enables direct data transmission between servers without the customer's intervention, which brings security risks. 
    3. If the FTP service is disabled, this operation makes the FTP service provided by the device unavailable. 
    Suggestion: 
    Before performing any of these three operations, ensure that each of them is needed. 
    Have you read warning message carefully?(y/n)y
     
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.

输出说明

无。

翻译
下载文档
更新时间:2019-04-22

文档编号:EDOC1000106112

浏览量:30008

下载量:236

平均得分:
本文档适用于这些产品
相关文档
相关版本
分享
上一页 下一页