会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
BOYE
Believe in yourself,Nothing is impossible
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
···
11
12
13
14
15
16
17
18
19
···
29
下一页
2022年11月25日
linxu TMOUT
摘要: 系统为CentOS 7,一次无意操作在 /etc/profile 末尾增加了TMOUT=90,然后系统就总是一会没操作就自动退出登录,不仅ssh自动退出,在本地使用也自动退出,很麻烦,查了一下, 原来是启动了系统空闲等待时间,TMOUT=90意思是90秒无操作就自动退出登录 export TMOUT
阅读全文
posted @ 2022-11-25 15:24 boye169
阅读(12)
评论(0)
推荐(0)
编辑
2022年11月22日
Go 语言环境安装
摘要: 下载 https://golang.google.cn/dl/。 linux下安装 1、下载二进制包:go1.4.linux-amd64.tar.gz。 2、将下载的二进制包解压至 /usr/local目录。 tar -C /usr/local -xzf go1.4.linux-amd64.tar.
阅读全文
posted @ 2022-11-22 17:50 boye169
阅读(15)
评论(0)
推荐(0)
编辑
2022年10月27日
linux 下jq命令
摘要: 安装 yum install jq -y 新建文件 vim test.json #加入下面内容,保存 [{"name":"菜鸟教程","url":"www.runoob.com"},{"name":"google","url":"www.google.com"},{"name":"微博","url"
阅读全文
posted @ 2022-10-27 14:21 boye169
阅读(28)
评论(0)
推荐(0)
编辑
2022年10月26日
mysql 按指定字段 值排序
摘要: 创建表 CREATE TABLE `field_data` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(255) DEFAULT NULL COMMENT '名称', PRIMARY KEY (`id`) U
阅读全文
posted @ 2022-10-26 11:35 boye169
阅读(312)
评论(0)
推荐(0)
编辑
2022年10月24日
php unicode转为汉字
摘要: function u2c($str){ return preg_replace_callback("#\\\u([0-9a-f]{4})#i", function ($r) { return iconv('UCS-2BE', 'UTF-8', pack('H4', $r[1]));},$str);
阅读全文
posted @ 2022-10-24 11:51 boye169
阅读(158)
评论(0)
推荐(0)
编辑
2022年10月11日
php 新建对象
摘要: class Car { var $color; function __construct($color="green") { $this->color = $color; } function what_color() { return $this->color; } }
阅读全文
posted @ 2022-10-11 15:08 boye169
阅读(6)
评论(0)
推荐(0)
编辑
mysql alter
摘要: alter table test modify column `code` varchar(200); alter table test change ret rets varchar(100) DEFAULT NULL COMMENT '返回值'; --修改字段名 ALTER TABLE test
阅读全文
posted @ 2022-10-11 11:15 boye169
阅读(13)
评论(0)
推荐(0)
编辑
json 格式化输出
摘要: import json d={"a":"我们","b":"test"} print(json.dumps(d)) #{"a": "\u6211\u4eec", "b": "test"} print(json.dumps(d,ensure_ascii=False,indent=2)) """ { "a
阅读全文
posted @ 2022-10-11 10:00 boye169
阅读(45)
评论(0)
推荐(0)
编辑
2022年9月27日
python 读取excel
摘要: #!/usr/bin/env python # -*- coding: utf-8 -*- import warnings warnings.filterwarnings('ignore') import openpyxl from openpyxl.cell import MergedCell i
阅读全文
posted @ 2022-09-27 18:30 boye169
阅读(33)
评论(0)
推荐(0)
编辑
2022年9月2日
telnet 超时断开连接
摘要: timeout 5 telnet 127.0.0.1 36554 #5秒后断开连接
阅读全文
posted @ 2022-09-02 09:52 boye169
阅读(147)
评论(0)
推荐(0)
编辑
上一页
1
···
11
12
13
14
15
16
17
18
19
···
29
下一页
公告