• Linux常用命令(一)


    一、scp命令

      在不同的linux系统上互相传输文件,可以使用scp命令,完成完成的传输:

      (1)、把本机文件拷贝到远程机器上

        需求:把本机A上的文件拷贝到远程机器B上(把A机器上的/home/hundsun/appcom目录下所有文件,拷贝到B机器上同样的目录文件下)

        scp /home/hundsun/appcom/* root@10.20.27.239:/home/hundsun/appcom

      (2)、把远程机器上的文件拷贝到本机

        需求:把远程机器B上的文件拷贝到本机A(把远程B机器上的/home/hundsun/appcom目录下所有文件,拷贝到A机器上的目录文件下)

        scp 10.20.27.239:/home/hundsun/appcom/* /home/hundsun/test

      注意事项:

      (1)、如果因为安全策略,需要加上端口,则,命令格式如下:

        scp -p 9022   10.20.27.239:/home/hundsun/appcom/* /home/hundsun/test

        其中9022是端口地址

      (2)、使用scp要注意所使用的用户是否具有可读取远程服务器相应文件的权限(如果没有,则不能复制)。

      (3)、对拷文件夹 (包括文件夹本身)需要加上-r

        scp -r  10.20.27.239:/home/hundsun/appcom /home/hundsun/test

     二、如何在linux系统中设置静态ip地址

      详细博客地址:https://jingyan.baidu.com/article/fec4bce2897d37f2618d8bfe.html

    三、关闭防火墙

      //临时关闭

      systemctl stop firewalld

      //禁止开机启动

      systemctl disable firewalld

      Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.

      Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

    四、crontab

      https://www.cnblogs.com/intval/p/5763929.html

    五、创建用户和用户组

      https://www.cnblogs.com/shoubianxingchen/p/5166496.html

  • 相关阅读:
    Window 命令
    HTTP 状态码
    Mysql基本用法-存储引擎-04
    Mysql基本用法-存储引擎-03
    Mysql基本用法-left join、right join、 inner join、子查询和join-02
    Mysql基本用法-01
    二进制编码-详细讲解
    JS操作文件
    PHP5接口技术入门
    PHP5中__get()、__set()方法
  • 原文地址:https://www.cnblogs.com/soft2018/p/10184553.html
Copyright © 2020-2023  润新知