zoukankan      html  css  js  c++  java
  • linux学习笔记一:远程连接linux服务器

    环境介绍:win7电脑,通过VM虚拟出linux系统,安装centOS7

    通过Xshell连接linux,ftp访问服务器资源。

    遇到的问题,ftp连不上linux

    解决:linux上安装ftp服务

    步骤

    一、检查是否安装了ftp服务

    rpm -qa|grep vsftpd

    二、安装ftp服务

    yum -y install vsftpd

    三、开启ftp服务,并添加到开机启动项

    systemctl start vsftpd.service (也可以用service vsftpd start 旧版本命令,systemctl新版本命令【注意防火墙添加端口,centOS7和6版本添加方式不一样】)

    chkconfig vsftpd on

    四、检查ftp服务

    systemctl status vsftpd.service 或者 service vsftpd status 【极端情况下,可能需要手动开启防火墙ftp端口】

    五、测试ftp服务

    ftp localhost

    六、配置ftp服务,允许root等用户远程连接

    1、编辑 /etc/vsftpd/vsftpd.conf 文件

    加入:

    pam_service_name=vsftpd

    userlist_enable=YES   【是否启用user_list文件】

    tcp_wrappers=YES   【控制主机访问,默认YES】

    2、编辑/etc/vsftp/user_list

    注释掉 root,允许root上传下载文件

    补充:另一种常见的远程连接linux方式telnet,需要在window端,linux端安装telnet服务。

     ftp乱码解决:

    ftp连接工具连接属性里,勾上use UTF-8 encoding

    secureCRT乱码解决:

    secureCRT配置文件下session子目录下,找到相对应的连接文件(后缀.ini),修改Filenames Always Use UTF=00000001

  • 相关阅读:
    HBase with MapReduce (MultiTable Read)
    HBase with MapReduce (SummaryToFile)
    HBase with MapReduce (Summary)
    HBase with MapReduce (Read and Write)
    HBase with MapReduce (Only Read)
    Hbase中的BloomFilter(布隆过滤器)
    HBase的快照技术
    How To Use Hbase Bulk Loading
    Cloudera-Manager修改集群的IP
    Java中的HashSet和TreeSet
  • 原文地址:https://www.cnblogs.com/x-jingxin/p/9032060.html
Copyright © 2011-2022 走看看