上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 36 下一页
摘要: import os pid = os.getpid() print('pid : ',pid) 阅读全文
posted @ 2021-08-21 11:13 lucky_tomato 阅读(2498) 评论(0) 推荐(1)
摘要: msg = '我是中国人' 转二进制格式 print(msg.encode(encoding="utf-8")) 结果: b'\xe6\x88\x91\xe6\x98\xaf\xe4\xb8\xad\xe5\x9b\xbd\xe4\xba\xba' 解码 print(msg.encode(encod 阅读全文
posted @ 2021-08-21 11:09 lucky_tomato 阅读(614) 评论(0) 推荐(0)
摘要: import sys print(sys.getdefaultencoding()) 阅读全文
posted @ 2021-08-21 11:06 lucky_tomato 阅读(232) 评论(0) 推荐(0)
摘要: SElinux初探 SElinux已经是个非常完备的内核模块了,CentOS5.x提供了很多管理SELinux的命令与机制,因此在整体架构上面比以前的版本要单纯且容易操作管理。 SElinux字面上的意义就是安全强化的Linux。 SELinux是在进行程序、文件等权限设置依据的一个内核模块 SEL 阅读全文
posted @ 2021-08-21 10:53 lucky_tomato 阅读(298) 评论(0) 推荐(0)
摘要: linux的所有目录结构是一个有层次的倒挂着的树形目录结构 根"/"是所有目录的顶点 目录结构和分区设备是没有关系的。 /usr放置用户的程序 /home放置用户的数据 /usr/local编译软件的路径 /opt用户存放于第三方厂商开放的程序。 /etc/服务启动命令存放的目录/etc/init. 阅读全文
posted @ 2021-08-21 10:45 lucky_tomato 阅读(54) 评论(0) 推荐(0)
摘要: Ctrl+a 去到行首 Ctrl+e 去到行尾 Ctrl+c 中断命令 Ctrl+d 注销 Ctrl+l 清屏幕 Ctrl+u 清除,剪切光标后的内容 Ctrl+k 清除鼠标后面的内容 Ctrl+r 查找 Ctrl+h 删除一个字符 Ctrl+Shift+y 粘贴 阅读全文
posted @ 2021-08-21 10:43 lucky_tomato 阅读(29) 评论(0) 推荐(0)
摘要: 前端返回504 uwsgi报错日志问题1 Tue Jan 19 14:06:15 2021 - SIGPIPE: writing to a closed pipe/socket/fd (probably the client disconnected) BrokenPipeError: [Errno 阅读全文
posted @ 2021-08-21 10:38 lucky_tomato 阅读(1073) 评论(0) 推荐(0)
摘要: 默认情况下,使用subprocess模块会因为超时而导致报错,但是这种报错只会在任务执行完才报错,不会超时立马报错。 参考链接 https://www.jianshu.com/p/3410828a3c5d https://blog.csdn.net/jiandanokok/article/detai 阅读全文
posted @ 2021-08-21 10:33 lucky_tomato 阅读(230) 评论(0) 推荐(0)
摘要: 请看这篇文章 https://blog.csdn.net/ouyang_peng/article/details/84066417 阅读全文
posted @ 2021-08-21 10:24 lucky_tomato 阅读(341) 评论(0) 推荐(0)
摘要: 一般是unicorn端口被占用了,unicorn默认端口是8080,如果机器上安装了tomcat的话就会端口占用,需要修改gitlab配置文件 [root@localhost ~]# vim /etc/gitlab/gitlab.rb ### Advanced settings # unicorn[ 阅读全文
posted @ 2021-08-21 10:20 lucky_tomato 阅读(349) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 36 下一页