今天这应该算是之前Linux学习的后续

我们首先还是更换操作系统
选择公共镜像的 CentOS 7 64bit 系统

ECS训练营day6——安装Linux环境图形化桌面

第二步是更新软件源并升级系统,还是先需要在putty里面连接服务器后运行以下命令:

yum update&& yum install wqy-microhei-fonts

等待安装完之后再继续安装Gnome+VNC一键包

wget https://gist.githubusercontent.com/ivmm/d93138038edbd551def09205bb61ae11/raw/8ed82411926acb3ab331d293f6200447ad2c85cf/gnome_install.sh&& bash gnome_install.sh
一定要耐心等待安装完毕

这里输入VNC的连接密码,不是root密码,可以是全新的,输入密码时是不显示的。

下载并运行VNC_Viewer
运行VNC,输入公网IP:5901,点击 CONNETCT,然后输入刚才的VNC密码。便可进入Linux图形界面。
ECS训练营day6——安装Linux环境图形化桌面

下面就是一些Linux 的基本操作命令

查看系统、内核:

cat /etc/redhat-release
uname -r

查看CPU:

grep “CPU” /proc/cpuinfo
运行时间:

uptime

查看系统位数:

getconf LONG_BIT

查看硬盘和分区:

df -h
软件安装与卸载:

yum update #更新系统
yum makecache #更新软件源缓存
yum search 软件名 #搜索软件
yum install 软件名 #安装软件
yum remove 软件名 #卸载软件
软件的管理:

service软件名 start #启动
service软件名 restart #重启
service软件名 stop #关闭
service软件名 status #状态

文件与文件夹管理:

touch 文件名 #创建文件
mkdir –p a/b/c/d #递归创建文件夹
cp a.a b.b #复制文件
mv a.a c.c #重命名或者复制
chmod 0755 d/ #目录权限
chown –R 用户名:用户组 e/ #目录归属
rm a.bc -rf #删除文件/文件夹

文件的下载:

wget http://下载地址
wget https://mirrors.aliyun.com/centos/7.3.1611/isos/x86_64/CentOS-7-x86_64-DVD-1611.torrent

压缩与解压:

压缩:tar zcvf node-v4.5.0.tar.gz
解压:tar zxvf node-v4.5.0.tar.gz

今天课程太紧,只能继续完成之前的来水水啦

相关文章:

  • 2021-11-19
  • 2022-12-23
  • 2021-07-27
  • 2021-10-31
  • 2021-11-04
  • 2021-11-19
  • 2021-12-25
  • 2021-09-01
猜你喜欢
  • 2021-07-07
  • 2021-07-08
  • 2021-05-10
  • 2021-12-19
  • 2022-03-06
  • 2021-12-13
  • 2021-07-08
相关资源
相似解决方案