问题集锦
2016-09-06 11:53
369 查看
问题集锦
Linux上传下载工具rz、sz
# yum install –y lrzsz
# rz #导入文件#sz #导出文件
1.虚拟机yum源问题
[root@centos ~]# yum install -y openssh-clients
Loaded plugins: fastestmirror, security
Determining fastest mirrors
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again
解决方法;
[root@centos ~]# cd /etc/yum.repos.d/
[root@centos yum.repos.d]# ls
CentOS-Base.repo CentOS-Media.repo epel-6.repo epel-testing.repo
CentOS-Debuginfo.repo CentOS-Vault.repo epel.repo
[root@centos yum.repos.d]# mv epel.repo epel.repobak
[root@centos yum.repos.d]# yum list httpd
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: mirror.bit.edu.cn
* extras: mirror.bit.edu.cn
* updates: mirror.bit.edu.cn
base | 3.7 kB 00:00
base/primary_db | 4.7 MB 00:00
2.ubuntu命令
yum命令
root@shixisheng-test-1:~# apt-get install vim
Reading package lists... Done
Building dependency tree
Reading state information... Done
vim is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
主机名命令
root@shixisheng-test-1:~# hostname
shixisheng-test-1
root@shixisheng-test-1:~# uname -n
shixisheng-test-1
主机名永久修改/etc/hostname
相关文章推荐
- linux基础之篇--安装
- 学习Linux打基础很重要哦
- 转 Linux 基础知识
- 怨念。怎么就一直待审核呢
- yum无法更新
- Ubuntu下定制vim/gvim及使用技巧
- Ubuntu下Latex安装(包括中文环境)
- Emacs是一种信仰!世界最强编辑器介绍
- Windows与linux双系统安装
- 将三张Red Hat 9.0 CD iso合成一张DVD iso的方法
- Linux必学的60个命令
- linux 常用命令及技巧
- Linux操作系统文件系统基础知识详解
- Linux新手要了解的十个知识点
- linux文件系统基础知识
- linux内核编辑错误之make menuconfig
- 互斥量trylock与lock
- shell基本脚本编译
- linux基础之find初认识
- Linux初学,利用共享内存,有名管道,select实现两个用户之间的自由对话。