随笔分类 -  Linux

摘要:新建发送邮件的脚本 #!/usr/bin/python3 import socket import os import json import smtplib from email.header import Header from email.mime.multipart import MIMEM 阅读全文
posted @ 2021-12-23 09:19 骨头 阅读(245) 评论(0) 推荐(0)
摘要:```bash # 端口扫描 nc -z -v -n 127.0.0.1 21-25 # 使用netcat 连接服务抓取他们的banner nc -v 127.0.0.1 9999 # 聊天 $nc -l 3000 # server $nc 127.0.0.1 3000 # client # 文件传输 $nc -l 3000 file.txt # client ``` 阅读全文
posted @ 2020-05-12 18:43 骨头 阅读(220) 评论(0) 推荐(0)
摘要:是一个系统活动报告工具,既可以实时查看系统的当前活动,又可以配置保存和报告历史统计数据。sar是目前Linux上最为全面的系统性能分析工具之一,可以从14个大方面对系统的活动进行报告,包括文件的读写情况、系统调用的使用情况、串口、CPU效率、内存使用状况、进程活动及IPC有关的活动等,使用也是较为复 阅读全文
posted @ 2020-04-02 09:07 骨头 阅读(285) 评论(0) 推荐(0)
摘要:用于在内核运行时动态地修改内核的运行参数,可用的内核参数在目录 中。它包含一些tcp/ip堆栈和虚拟内存系统的高级选项。用sysctl可以读取设置超过五百个系统变量。正常可以通过修改 来修改配置。 参数 variable 变量,例如 也可以是 variable=value 设置变量的值 n:打印值时 阅读全文
posted @ 2020-03-20 10:40 骨头 阅读(802) 评论(0) 推荐(0)
摘要:格式 | 字段名 | 允许的值 | 允许的特殊字符 | | | | | | 秒 | 0 59 | | | 分 | 0 59 | | | 小时 | 0 23 | | | 日 | 1 31 | | | 月 | 0 11 or JAN DEC | | | 星期 | 1 7 or SUN SAT | | | 阅读全文
posted @ 2020-02-10 19:53 骨头 阅读(155) 评论(0) 推荐(0)
摘要:安装 osx Centos 解决错误 bash make cd src && make all make[1]: Entering directory `/usr/local/redis 5.0.2/src' CC adlist.o In file included from adlist.c:34 阅读全文
posted @ 2020-01-12 21:11 骨头 阅读(183) 评论(0) 推荐(0)
摘要:设定Git仓库的钩子 一般路径为 xxx.git/hooks 参考文档 https://git-scm.com/docs/githooks 修改 post-receive 阅读全文
posted @ 2016-10-28 13:51 骨头 阅读(1106) 评论(0) 推荐(0)
摘要:service docker stop mv /var/lib/docker /mnt/docker ln -s /mnt/docker /var/lib/docker ls /var/lib/docker service docker start 阅读全文
posted @ 2016-10-26 18:20 骨头 阅读(1703) 评论(0) 推荐(0)
摘要:windows netstat -ano | find "8080"mac,Linux lsof -i:8700 或者 lsof -i | grep 8700 阅读全文
posted @ 2014-05-23 11:17 骨头 阅读(216) 评论(0) 推荐(0)
摘要:warrior@pc:~$ sudo apt-get install postgresql-xx-xx #可以使用Tab键进行代码补全warrior@pc:~$sudo su postgres #切换到postgrespostgres@pc:/home/warrior$psql postgres # 登录 postgres 数据库postgres@pc:/home/warrior$ psql postgrespsql (9.1.9)Type "help" for help.postgres=# ALTER USER postgres WITH ... 阅读全文
posted @ 2013-09-04 21:05 骨头 阅读(229) 评论(0) 推荐(0)
摘要:xbmc媒体中心(XBMC Media Center)是一个免费自由开源的媒体中心。软件能够支持几乎所有流行的音频和视频格式,支持各种网络媒体协议,可用于播放网络媒体。能够自动扫描你的电脑,并自动建立媒体资料库,包括封面图片、内容介绍和海报剧照,还有天气预报和许多音频视觉效果,让你电脑变成一个全功能的多媒体娱乐中心。软件支持的系统有:Linux、OSX、Windows、ATV–ATV2、IOS、OSX–OSXPPC、XBMCbuntu等系统。Ubuntu安装方法 sudo apt-get install python-software-properties pkg-config sud... 阅读全文
posted @ 2013-05-05 17:12 骨头 阅读(4111) 评论(0) 推荐(0)
摘要:下载 vmware for linuxmv VMware-Workstation-Full-xxx.txt VMware-Workstation-xxx.bundlechmod +x VMware-Workstation-xxx.bundlesudo -sapt-get install linux-headers-'uname -r'./VMware-Workstation-xxx.bundle如果无法跳出输入key 的 window则用一下命令注册/usr/lib/vmware/bin/vmware-vmx --new-sn xxx-xxx-xxx-xxx-xxx 阅读全文
posted @ 2013-04-08 09:18 骨头 阅读(364) 评论(0) 推荐(0)