摘要: ```sh # 安装EPEL和IUS软件源 yum install epel-release -y yum install https://centos7.iuscommunity.org/ius-release.rpm -y # 安装pip3.6或默认安装python3.6 yum install python36u-pip -y # 其他 ln -s /bin/python3.6 /bin... 阅读全文
posted @ 2018-12-04 00:08 水银_aquarius 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 脚本设置位置: /etc/cron.d 阅读全文
posted @ 2018-02-06 15:19 水银_aquarius 阅读(118) 评论(0) 推荐(0) 编辑
摘要: ```sh yum install git-all cd /srv git init --bare net_server.git git remote - v git remote add server root@123.123.123.123:/srv/net_server.git git push git clone /srv/net_server.git ``` 阅读全文
posted @ 2018-02-02 11:06 水银_aquarius 阅读(99) 评论(0) 推荐(0) 编辑
摘要: ```python from django.core.paginator import Paginator, EmptyPage class PaginatorSet: def __init__(self, limit=30): self._limit = limit def get(self, request, query_set): t... 阅读全文
posted @ 2018-01-23 16:22 水银_aquarius 阅读(110) 评论(0) 推荐(0) 编辑