Centos常用命令
2020-07-19 22:55:12
管理员
centos中google浏览器安装:
yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm
CentOS 7 卸载Firefox
先进入管理员模式
执行:
yum remove firefox
然后用whereis 查看,却发现还是有:
[root@localhost ~]# whereis firefox
firefox: /usr/lib64/firefox
再执行
cd /usr/lib64/
rm -rf firefox
即可干净删除firefox
Centos8 修改系统时间
发现修改时间命令centos8和7不同,8可以用以下方法修改系统时间:
添加源:rpm -ivh http://mirrors.wlnmp.com/centos/wlnmp-release-centos.noarch.rpm
安装ntp服务
dnf install wntp
时间同步
ntpdate ntp1.aliyun.com
修改时区
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
标签:
centos