Centos7 常用命令

来源:互联网 发布:影响黄金的数据 编辑:程序博客网 时间:2024/05/19 06:49

以下命令均来自实践:


1.解压文件

tar zxvf /home/mysql-cluster-gpl-7.4.11-linux-glibc2.5-x86_64.tar.gz

 

2.移动并建立目录

mv ./mysql-cluster-gpl-7.4.11-linux-glibc2.5-x86_64 ./mysql-cluster

 

3.查看centos的版本信息

cat/proc/version

 

4.重启网络

systemctl  restart  network

systemctl  status  network

 

5.查看MAC

nmcli device show

 

6.关机 重启

shutdown now

reboot

 

7.防火墙

systemctl start firewalld.service

systemctl stop firewalld.service

systemctl disable firewalld.service  禁止开机启动

 

8.磁盘空间占用

df -hl

 

9.内存占用

free -m

 

10.文件夹复制

 

cp -r /usr/local/nexus/sonatype-work/nexus/storage/snapshots /home/sonatype-work/nexus/storage

cp -r /usr/local/nexus/sonatype-work/nexus/storage/central /home/sonatype-work/nexus/storage

 

 

持续更新中……

0 0