摘要: dfdf - report file system disk space usagedf是查看文件系统磁盘使用情况的命令。如:# df -hFilesystem Size Used Avail Use% Mounted on/dev/vda2 95G 5... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(7505) 评论(0) 推荐(0) 编辑
摘要: Python中本身带有很多实用的工具,如pydoc。pydoc模块主要用来从Python模块中提取信息并生成文档。使用方法在Windows和Linux下的使用方法有些区别。Windowspython -m pydoc 如:C:\>python -m pydoc module_test... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(1116) 评论(0) 推荐(0) 编辑
摘要: sublime text插件pylinter提示错误Warning: option include-ids is deprecated and ignored.错误本身是Python的错误,这说明不是插件的问题,就是配置文件的问题。pylinter的设置如下: "pylint_... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(189) 评论(0) 推荐(0) 编辑
摘要: “Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin.”John von Neumann, 1951Python中自带了随机数的... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(362) 评论(0) 推荐(0) 编辑
摘要: 字符串转换为整数int() 如int(‘2’)。字符串转换为浮点数float() 如float(‘12.34’)ASCII码转换为字符chr() 如chr(97)字符转换为ASCII码ord() 如ord(‘a’)更多请参考Python入门学习。 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 对于刚刚接触网络的人来说,《UNIX网络编程》中第一个例子(daytimetcpcli)可能就测试不通过。也许你试着继续向后读来,自己写一个服务程序来解决这个问题,但是daytime服务也是标准服务的一个例子。你也可以对公网中的daytime服务器进行连接测试。下面先给出源代码,然后... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(220) 评论(0) 推荐(0) 编辑
摘要: OSI TCP/IP --- -------应用层表示层 应用层会话层----- -------传输层 TCP UDP----- ... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Signal Name Number DescriptionSIGHUP 1 Hangup (POSIX)SIGINT 2 Terminal interrupt (ANSI)SIGQUIT 3 Terminal quit (POSIX)SIGILL 4 Ill... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(372) 评论(0) 推荐(0) 编辑
摘要: Linux启动ssh服务在Linux下启动ssh服务使用如下命令其一即可:# service sshd start# /etc/init.d/sshd start开机启动使用如下方法其就可以。chkconfig可以使用chkconfig添加运行级别。如:# chkconfig ssh... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(12608) 评论(0) 推荐(0) 编辑
摘要: 无论是作为上线的服务器还是开发中的虚拟机来说,都是没有必要启动图形界面的,而图形界面占用的内存还是很大的。枫竹梦本文就介绍如何设置来默认启动命令行。其实就是设置系统的启动级别。CentOS的设置修改文件/etc/inittab。[root@localhost ~]#vi /etc/i... 阅读全文
posted @ 2017-10-22 15:51 枫竹梦 阅读(12106) 评论(0) 推荐(0) 编辑