当前位置: 首页 > news >正文

我的网站百度找不到了微博个人网页设计模板

我的网站百度找不到了,微博个人网页设计模板,包头企业网站建设公司,做网站有什么好处安装vsftpdyum -y install vsftpd添加FTP用户方式1、添加只允许通过ftp访问的用户useradd -d /home/ftp ftp_user #-d指定用户登录时的启始目录方式2、允许用户登录操作系统usermod -d /home/ftp -s /bin/bash ftp_user #-s指定用户登入后所使用的shell设置用户登录密码passwd …
  1. 安装vsftpd

yum -y install vsftpd
  1. 添加FTP用户

  1. 方式1、添加只允许通过ftp访问的用户

useradd -d /home/ftp ftp_user #-d指定用户登录时的启始目录
  1. 方式2、允许用户登录操作系统

usermod -d /home/ftp -s /bin/bash ftp_user #-s指定用户登入后所使用的shell
  1. 设置用户登录密码

passwd ftp_pwd
  1. 修改配置文件(文件位置/etc/vsftpd/vsftpd.conf,修改时注意用户权限)

# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=NO #是否允许匿名登录
# Uncomment this to allow local users to log in.
# When SELinux is enforcing check for SE bool ftp_home_dir
local_enable=YES #是否允许本地用户登录
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES #是有有写权限# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
# 多数情况下,希望限制ftp用户只能在其主目录下活动,需要配置如下三个属性
chroot_local_user=YES #默认值NO,是否将所有用户限制在主目录,当为NO时,ftp用户可以向上切换目录
chroot_list_enable=YES #是否启用例外用户名单
# (default follows)
chroot_list_file=/etc/vsftpd/chroot_list #例外用户名单,限制主目录属性跟chroot_local_user相反# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
# When "listen" directive is enabled, vsftpd runs in standalone mode and
# listens on IPv4 sockets. This directive cannot be used in conjunction
# with the listen_ipv6 directive.
listen=YES
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
# Make sure, that one of the listen options is commented !!#IPv4和IPv6只能监听其中之一listen_ipv6=NOuserlist_enable=YES # 开启“名单列表”限制功能
userlist_deny=NO # 设置“名单列表”为“白名单”,仅指定列表中的用户允许使用FTP登录
userlist_file=/etc/vsftpd/user_list    # “名单列表”对应的文件pasv_min_port=30001    #传输端口
pasv_max_port=31000    #传输端口
  1. 主动模式与被动模式

  1. 主动模式-连接过程

  1. 客户端与服务器的21端口建立连接

  1. 客户端开放一个随机高位端口端口(1024以上),用于接收数据

  1. 客户端发送PORT主动模式命令给服务器21端口,其中PORT命令包括客户端用于接收数据的端口号

  1. 服务器通过20端口和客户端的新开放端口进行连接,并给客户端发送数据

  1. 被动模式-连接过程

  1. 客户端与服务器的21端口建立连接

  1. 客户端发送PASV被动模式命令给服务器21端口

  1. 服务器打开一个随机高位端口用于传输数据(1024以上),并通知客户端

  1. 客户端连接到服务器新开放的端口进行数据传输

  1. 由于linux服务器有防火墙限制,被动模式时,传输端口不确定,导致防火墙开放端口不确定,所以在配置中指定被动模式时端口上下限,然后配置防火墙规则

iptables -I INPUT -p tcp --dport 30001:31000 -j ACCEPT
iptables -I OUTPUT -p tcp --dport 30001:31000 -j ACCEPT
  1. 配置被动模式,可以直接方便通过ftp客户端软件连接。

  1. 好用的linux问题网站:https://unix.stackexchange.com/

  1. 补充问题:

2023-03-25:ftp时报错:421 Service not available
解决方案:/etc/hosts.allow中添加允许访问的vsftpd:xxx.xxx.xxx.xxx

http://www.yayakq.cn/news/466749/

相关文章:

  • 制作简单门户网站步骤gooood谷德设计网站
  • 青岛网站建设培训班泰兴市住房和城乡建设局网站
  • 网站开发 在线数据库开远市住房和城乡建设局网站
  • 网站备案号注销查询系统平台推广营销方案
  • 俄文网站房产网站做那个比较好
  • 网站建设怎么说服客户九江seo公司
  • 网站建设费怎么写会计科目qq上如何做文学网站
  • 网站建设费用主要包括那几项网站建设管理工作会议上的讲话
  • 阿里云服务器搭网站同时做网盘沃尔玛的网站建设
  • 微信电影网站怎么做的网站开发及服务器总共多少钱
  • 电商网站运营js实现网站浮动窗口
  • 建设信源网站公司局域网组建方案
  • 作品展示网站源码wordpress 调用
  • 为了同学都能访问网站如何做有什么平台可以销售产品
  • 网站建设的目的与意义是什么网站建设案例单招网
  • 湖南省新邵县建设局网站安徽省工程建设项目信息网
  • 上海企业网站建设制作石狮网站建设科技
  • 给别人做网站的话术网站备案 幕布
  • 工业和信息化部五系网站建设小程序游戏开发平台
  • 网站免费推广的方法如何获取网站域名证书
  • 石家庄网站建设服务做 爱 网站视频
  • 快速免费做网站淘宝网做网站
  • 安监局网站建设方案案例中优衣库所采用的网络营销方式
  • 网站建设落后发言随州网站建设哪家好
  • 重庆高端网站建设价格代理网络是什么意思
  • 杭州门户网站建设公司要是360网站不安全怎么做
  • 网站1g空间多大亳州网站制作
  • 网站开发与设计岗位职责初步ps网页设计素材
  • php 网站开发缓存有那几种约会软件app前十名
  • 网站变灰色咸阳学校网站建设价格