随笔分类 - linux
摘要:C:\Users\xxx>ssh root@10.239.168.39 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @
阅读全文
摘要:有时在linux下无法联网,ping不通,但实际上已经连接了网线。。。 解决方案: 查看网卡设置,linux下网卡的配置文件在 /etc/sysconfig/network-scripts/ 使用ls查看然后用vi或者vim来编辑ifcfg-eth0 修改ONBOOT=yes 然后重启,之后就可以联
阅读全文
摘要:Linux设置自动登录如下: 在CentOS下,我们每次需要用root账号手动登陆,但是再做automation时,我们需要免登录,直接进入OS。 很简单,按图中所示修改配置文件保存并重启,则会免登录. gedit /etc/gdm/custom.conf 在[daemon]下添加: Automat
阅读全文
安装redhat报错:Entering emergency mode exit the shell to continue. Type “journalctl” to view system logs
摘要:安装redhat系统 如果过程中出现: Entering emergency mode exit the shell to continue. Type “journalctl” to view system logs. 解决方法: 这时在提示符下输入以下两行命令 cd devls在出现的几列字符中
阅读全文
摘要:xxd和hexdump命令类似,都可以查看二进制文件. 安装xxd命令 yum install -y vim-common 查看xxd命令帮助 xxd -h xxd --help man xxd 使用命令查看文件 [root@localhost queue]# xxd id\:000000\,ori
阅读全文
摘要:hexdump是Linux下的一个二进制文件查看工具,它可以将二进制文件转换为ASCII、八进制、十进制、十六进制格式进行查看。 查看hexdump帮助: hexdump -hhexdump --helpman hexdump $ man hexdump NAME hexdump - display
阅读全文
摘要:最近在fedora中yum install gdb时报错: Failed to download metadata for repo 'fedora-modular'Error: Failed to download metadata for repo 'fedora-modular' 解决方案1:
阅读全文
摘要:linux执行sh报错line 5: $'\r': command not found 解决方案: yum -y install dos2unix* dos2unix *.*
阅读全文
摘要:下载rpm包:http://rpmfind.net/linux/rpm2html/search.php?query=yum 最近手贱,卸载了fedora下的yum,装了半天装不上去,一直报错:error: Failed dependencies 如何解决? rpm -ivh 包名 --nodeps
阅读全文