看了廖雪峰老师的git教程,自己总结一下实际会用到的问题。基础环境: server:centos 6.8 client :A:mac B:linux一、安装git,搭建git服务器 &nbs
做了一个统计nginx日志的访客IP的次数和IP的实时写入到redis,实现的原理比较简单,用到的redis的数据类型是hash。高手勿喷。
#!/usr/bin/python# -*- coding: utf-8 -*-#filename back.py#author superchenimport osimport timesource ='/home/shiyanlou/Documents/'target_dir = '/home/shiyanlou/Desktop'target = target_dir+time.strftim
需要更改的两个文件是/etc/issue 和 /etc/motd /etc/issue是存放linux登录前的提示语 /etc/motd是存放linux登录后的提示语 motd是message of the day的缩写提示语涉及一些转义字符: \d 日期 \t 时间
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号