centos ntpdate 时间同步
yum install ntpdatentpdate ntp.sjtu.edu.cn # 上海交大的 ntp 服务器vi /etc/sysconfig/clockZONE="Asia/Shanghai" UTC=false # 设置为false,硬件时钟不于utc时间一致 ARC=falseln -sf /usr/share/zoneinfo/Asia/Shanghai
yum install ntpdatentpdate ntp.sjtu.edu.cn # 上海交大的 ntp 服务器vi /etc/sysconfig/clockZONE="Asia/Shanghai" UTC=false # 设置为false,硬件时钟不于utc时间一致 ARC=falseln -sf /usr/share/zoneinfo/Asia/Shanghai
vim 插件管理 Vundle [https://github.com/VundleVim/Vundle.vim]:1.下载 Vundle 仓库git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim2.vim ~/.vimrc 在最上面,添加以下配置" =================
php 安装 xhprof 扩展 (兼容php5、7)https://github.com/longxinH/xhprofgit clone git@github.com:longxinH/xhprof.git cd xhprof/extension/ /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7
背景出现如下情况,说明本地 yum 源出现问题[root@www download]# yum install -y gcc Loaded plugins: fastestmirror Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid
先用 yum 安装依赖yum install curl-devel expat-devel gettext-devel openssl-devel zlib-develyum install gcc perl-ExtUtils-MakeMaker卸载 centos自带的 git 1.7.1通过 git –version 查看系统带的版本,cento6.5 应该自带的是 git 版本是 1.7.1y
sudo timedatectl set-timezone Asia/Shanghai
前提: 系统需要 centos 7, 内核版本大于 3.10 (uname -a)删除旧版 docker 镜像旧版 docker 是 1.13 或之前的版本,要升级到最新版 docker,将这些镜像文件全部删除,否则升级以后旧的镜像将无法正常删除,如果升级前没有删除,升级后发现删除不了,最粗暴的方式 rm -rf /var/lib/docker 不过,请一定谨慎使用!!!确保镜像和数据是已备份或能
root 用户程序开机自启动,一般使用 chkconfig program on普通用户程序怎么开机自启动呢,可以使用 rc.localvi /etc/rc.local su - git -c 'nohup /home/git/gitea web &'
root 安装 zshyum install -y zsh chsh -s /bin/zsh安装 oh-my-zshyum install -y git sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"通过以上两步 root