Linux内核将一切视为文件,那么Linux的文件是什么呢?其既可以是事实上的真正的物理文件,也可以是设备、管道,甚至还可以是一块内存。狭义的文件是指文件系统中的物理文件,而广义的文件则可以是Linux管理的所有对象。这些广义的文件利用VFS机制,以文件系统的形式挂载在Linux内核中,对外提供一致... ...
分类:
系统相关 时间:
2016-08-10 06:23:17
阅读次数:
321
重新启动服务器,访问web服务发现无法浏览啦!登陆服务器之后进到nginx使用./nginx-sreload重新读取配置文件,发现报nginx:[error]open()"/usr/local/nginx/logs/nginx.pid"failed(2:Nosuchfileordirectory)错误,进到logs文件发现的确没有nginx.pid文件[root@localhostsbin]#./..
分类:
其他好文 时间:
2016-08-10 01:10:47
阅读次数:
145
35. In python, file operation syntax is similar to c. open(file,'r',……) //the first parameters is necessary, other is optional ,the second parameters ...
分类:
编程语言 时间:
2016-08-09 23:22:08
阅读次数:
278
http://neway6655.github.io/redis/2015/12/19/%E5%96%84%E5%BE%85Redis%E9%87%8C%E7%9A%84%E6%95%B0%E6%8D%AE.html http://www.open-open.com/lib/view/open141 ...
分类:
其他好文 时间:
2016-08-09 21:55:12
阅读次数:
134
1.打开文件 int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int creat(const char *pathname, mode_t mode) ...
分类:
其他好文 时间:
2016-08-09 18:55:33
阅读次数:
149
foreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。foreach元素的属性主要有 item,index,collection,open,separator,close。item表示集合中每一个元素进行迭代时的别名,index指定一个名字,用于表示在迭代过程中,每次迭代到的 ...
分类:
其他好文 时间:
2016-08-09 18:39:37
阅读次数:
105
1. Derby 介绍 将目光放在小 Derby 的原因是纯绿色、轻巧、内存占用小,分分钟在你机子跑起来,自己做点需要连接数据库的代码实践非常方便。 虽然 Mysql 也可以,多一种选择,不是也挺好么? Apache Derby是一个完全用 java 编写的数据库,Derby是一个Open sour ...
分类:
数据库 时间:
2016-08-09 17:27:55
阅读次数:
293
nginx: [error] CreateFile() "E:\nginx\nginx-1.9.3/logs/nginx.pid" failed nginx: [error] Open() "E:\nginx\nginx-1.9.3/logs/nginx.pid" failed 解决方法: 使用命令 ...
分类:
其他好文 时间:
2016-08-09 13:31:14
阅读次数:
4081
刚开始使用eclipse进行调试时,当弹出"Confir Perspective Switch"视图时,不小心点了“No”。以后每次debug的时候都不切换到debug视图。 后发现设置Window->Preferences->Perspectives将Open the associated whe ...
分类:
系统相关 时间:
2016-08-09 10:35:43
阅读次数:
213