随笔分类 - Linux篇
摘要:ssh-keygen 产生公钥与私钥对. ssh-copy-id 将本机的公钥复制到远程机器的authorized_keys文件中,ssh-copy-id也能让你有到远程机器的home, ~./ssh , 和 ~/.ssh/authorized_keys的权利 第一步:在本地机器上使用ssh-key
阅读全文
摘要:Redhat7 yum 无法使用 错误信息 [root@micocube ~]# yum install gcc-c++ Loaded plugins: product-id, search-disabled-repos, subscription-manager This system is no
阅读全文
摘要:我这里使用的时centos7-mini,centos系统本身默认安装有python2.x,版本x根据不同版本系统有所不同,可通过 python --V 或 python --version 查看系统自带的python版本 有一些系统命令时需要用到python2,不能卸载 1、安装依赖包 1)首先安装
阅读全文
摘要:Linux防火墙操作(经测试部分命令无效) 关闭防火墙:service iptables stop 开启防火墙:service iptables start 防火墙状态:service iptables status 永久关闭:chkconfig iptables off 永久开启:chkconfi
阅读全文
摘要:在虚机中安装完Linux系统后,虚机是ping不通外网的,而默认的动态IP会为之后的Hadoop应用造成不少麻烦,为了减少这些不必要的麻烦,我们把系统的IP设置为静态。 步骤: 修改系统配置文件 命令: vi /etc/sysconfig/network-scripts/ifcfg-eth0 将文件
阅读全文

浙公网安备 33010602011771号