摘要:
Linux文件共享的方式有很多,Samba、NFS;还有ftp、rsync以及rsync衍生出来的sersync等都可以实现文件共享等目的。从目的上考虑,ftp比较适合上传供别人下载的文件,rsync适合同步几百几千的小文件。最近工作中遇到的只是个别文件需要共享,为了省事,就使用了NFS这个文件共享
阅读全文
posted @ 2017-08-03 21:37
Lorryrui
阅读(126)
推荐(0)
摘要:
Nginx介绍 Nginx最多的应该是以Web服务器的形式进入大众的视野,我们经常做的便是把Nginx服务器和Apache服务器放在一起对比。性能上,Nginx绝对是可以作为Apache服务器的代替,并且比Apache服务器更加优秀。从我接触过的Web服务器种类,只要是Linux系统的(Window
阅读全文
posted @ 2017-07-15 10:05
Lorryrui
阅读(263)
推荐(0)
摘要:
环境:服务器端CentOS7 客户端Windows 1.服务器端 1)安装Git yum -y install git 2)新增git账户,用于管理git adduser git ;passwd git 3)初始化git仓库(选择/src/git/test.git作为git仓库):git init
阅读全文
posted @ 2016-08-11 21:33
Lorryrui
阅读(137)
推荐(0)
摘要:
1.本地搭建Git环境 1)下载git安装包,本地安装(我安装的是Git-2.8.1-64-bit.exe,默认即可) 2)配置自己的用户名和邮箱 git config --global user.name "your_name" git config --global user.email "yo
阅读全文
posted @ 2016-07-26 09:03
Lorryrui
阅读(186)
推荐(0)
摘要:
1.安装 pip install django-pagination 2.修改setting.py文件 3.在要进行列表分页的页面(template)的页面上方(最好是最上面)中 导入它的tag {% load pagination_tags %}4.在你的模板(template)页面上,对你想要分
阅读全文
posted @ 2016-07-24 12:29
Lorryrui
阅读(1228)
推荐(0)
posted @ 2016-07-23 14:03
Lorryrui
阅读(111)
推荐(0)
摘要:
#记录一下学Django的笔记,怕以后忘记 1.创建工程 python django-admin.py startproject mysite 2.创建应用 python python manage.py startapp blog 3.配置数据库 1)setting.py使用mysql数据库 LA
阅读全文
posted @ 2016-07-17 16:52
Lorryrui
阅读(171)
推荐(0)
摘要:
197. Rising Temperature Given a Weather table, write a SQL query to find all dates' Ids with higher temperature compared to its previous (yesterday's)
阅读全文
posted @ 2016-07-15 10:31
Lorryrui
阅读(191)
推荐(0)
摘要:
181. Employees Earning More Than Their Managers The Employee table holds all employees including their managers. Every employee has an Id, and there i
阅读全文
posted @ 2016-07-14 21:31
Lorryrui
阅读(118)
推荐(0)
摘要:
183. Customers Who Never Order Table: Customers. + + +| Id | Name |+ + +| 1 | Joe || 2 | Henry || 3 | Sam || 4 | Max |+ + +Table: Orders. + + +| Id |
阅读全文
posted @ 2016-07-14 20:59
Lorryrui
阅读(175)
推荐(0)