(1)安装ntpdate工具
# yum -y install ntp ntpdate
(2)设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
(3)将系统时间写入硬件时间
# hwclock –systohc
(4)强制系统时间写入CMOS中防止重启失效
# hwclock -w
(1)安装ntpdate工具
# yum -y install ntp ntpdate
(2)设置系统时间与网络时间同步
# ntpdate cn.pool.ntp.org
(3)将系统时间写入硬件时间
# hwclock –systohc
(4)强制系统时间写入CMOS中防止重启失效
# hwclock -w
由于chrome 无法正常更新,firefox 有时候经常假死,在linux 平台上使用浏览器,一直很麻烦
不过偶然间发现,遨游浏览器居然有linux版本
官网有RPM包下载:
http://www.maxthon.cn/
下载完后进行安装,出现错误:
[root@localhost Downloads]# rpm -ivh maxthon-browser-stable-1.0.5.3-1.x86_64.rpm 警告:maxthon-browser-stable-1.0.5.3-1.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f8d030ec: NOKEY 错误:依赖检测失败: libgtkhotkey.so.1()(64bit) 被 maxthon-browser-stable-1.0.5.3-1.x86_64 需要
按照提示缺少libgtkhotkey.so.1()(64bit)
网上百度到,可以从这个地址进行下载:
http://rpm.pbone.net/index.php3/stat/3/srodzaj/1/search/libgtkhotkey.so.1%28%29%2864bit%29
但是仔细看了,里面没有针对的centos的版本,不过在下面的这个文章中
http://blog.csdn.net/enjosun/article/details/42078721
作者安装的是libgtkhotkey-0.2.1-9.fc19.x86_64.rpm
于是依样画葫芦
下载后进行安装:
[root@localhost Downloads]# rpm -ivh libgtkhotkey-0.2.1-9.fc19.x86_64.rpm 警告:libgtkhotkey-0.2.1-9.fc19.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID fb4b18e6: NOKEY 准备中... ################################# [100%] 正在升级/安装... 1:libgtkhotkey-0.2.1-9.fc19 ################################# [100%]
安装完成后,尝试再次安装遨游浏览器:
[root@localhost Downloads]# rpm -ivh maxthon-browser-stable-1.0.5.3-1.x86_64.rpm 警告:maxthon-browser-stable-1.0.5.3-1.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID f8d030ec: NOKEY 准备中... ################################# [100%] 正在升级/安装... 1:maxthon-browser-stable-1.0.5.3-1 ################################# [100%] nohup: 把输出追加到"nohup.out"
安装完成,启动遨游~
===================================================================================================
在桌面上设置快捷方式:
root@localhost maxthon]# cp /opt/maxthon/maxthon.desktop /home/terry/Desktop/
我们知道默认大部分linux是不支持NTFS
如果有需要,我们需要安装ntfs-3g 来让系统支持ntfs
centos 默认的源中是没有nfts-3g的,需要额外加载
1. 添加源,这里用的是阿里云的源
[root@localhost terry]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
2.更新
yum -y update
3.安装ntfs-3g
[root@localhost terry]# yum -y install ntfs-3g
4.然后mount 就可以使用了
根据nginx官网的说明:
可以进行如下操作:
编辑并且创建/etc/yum.repos.d/nginx.repo
,输入以下内容
[nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1
参考地址:https://www.nginx.com/resources/wiki/start/topics/tutorials/install/
然后直接允许
yum -y install nginx
启动nginx
[root@vcentos-nginx ~]# systemctl start nginx
将nginx 开入到开机启动的服务中去
[root@vcentos-nginx ~]# systemctl enable nginx Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service to /usr/lib/systemd/system/nginx.service. [root@vcentos-nginx ~]#
CentOS 可以使用hostname修改主机。但是这样修改重启就失效了。还需要在/etc/hostname文件中一并修改才可以。
CentOS 7使用新的命令 hostnamectl 可以很方便的查看和修改主机名。
使用#hostnamectl status 查看主机信息
更改主机名命令如下:
# hostnamectl set-hostname [new hostname]
例如
# hostnamectl set-hostname web-server
修改完需要重启服务
#systemctl restart systemd-hostnamed