会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Anonymous
only to record some tricky things ...
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页
2021年6月21日
Redis Benchmarks with Optimizations
摘要: Refer to https://matt.sh/redis-benchmark-compilers (完)
阅读全文
posted @ 2021-06-21 20:20 Anonymous596
阅读(33)
评论(0)
推荐(0)
2021年5月15日
.gitignore 无法过滤某些文件的问题
摘要: 如果在 initial commit 的时候没有配置好 .gitignore,而导致某些文件,例如 .pyc 被 commit 了。 则,之后 .gitignore 再加入 *.pyc 的规则,对已经 commit 的 .pyc 文件不起作用,这些文件的改动依然会被 git status 发现。 解
阅读全文
posted @ 2021-05-15 22:48 Anonymous596
阅读(300)
评论(0)
推荐(0)
2021年5月9日
gnome 环境下建立应用程序的快捷方式
摘要: 1) 手动创建一个 .desktop 文件,例如 DemoWebApplication.desktop,内容如下 (注意 Categories 的取值,可参考 /usr/share/applications/ 下 的 .desktop 文件), [Desktop Entry] Encoding=UT
阅读全文
posted @ 2021-05-09 21:30 Anonymous596
阅读(447)
评论(0)
推荐(0)
2021年4月20日
Host administratively prohibited 问题
摘要: sftp 连接远端 server 超时, Wireshark 抓包,显示 Host administratively prohibited,很大程度是远端 server 防火墙问题。 解决方法1: 如果是内部 server,关闭远端 server 的防火墙服务即可, $ sudo systemctl
阅读全文
posted @ 2021-04-20 17:06 Anonymous596
阅读(5517)
评论(0)
推荐(0)
2021年4月16日
CentOS 7 创建 sftp 帐号
摘要: 1)创建用户 tomsftp 及其 home 目录 /home/tomsftp/,并设置用户密码, $ su - # useradd -d /home/tomsftp/ -s /sbin/nologin tomsftp# passwd tomsftp 2) 编辑 /etc/ssh/sshd_conf
阅读全文
posted @ 2021-04-16 14:37 Anonymous596
阅读(454)
评论(0)
推荐(0)
sshd.service 端口号修改 (CentOS 7)
摘要: sshd.service 默认端口号 22,如果要修改,打开 /etc/ssh/sshd_config,修改 PORT, 例如, ... Port 14920 ... 然后将修改通知 SELinux, $ sudo semanage port -a -t ssh_port_t -p tcp 1492
阅读全文
posted @ 2021-04-16 10:27 Anonymous596
阅读(187)
评论(0)
推荐(0)
2021年4月13日
CentOS7+ 或 Ubuntu 16.04+ 下使 supervisord 随系统启动 (systemd)
摘要: 从 https://github.com/Supervisor/initscripts 下载 initscript,注意根据当前机器 supervisor 的安装情况和 supervisor.conf 的配置情况调整 centos-systemd-etcs initscript, # supervi
阅读全文
posted @ 2021-04-13 18:48 Anonymous596
阅读(156)
评论(0)
推荐(0)
2021年4月12日
Ubuntu 下使 supervisord 随系统启动 (sysV init.d) --- Obsoleted
摘要: Use systemd is a better choice https://www.cnblogs.com/gaowengang/p/14654746.html Obsoleted 从 https://github.com/Supervisor/initscripts 下载 initscript,
阅读全文
posted @ 2021-04-12 20:49 Anonymous596
阅读(242)
评论(0)
推荐(0)
2021年4月11日
nginx 命令简记
摘要: 1) 修改配置文件后,平滑重启,(此处认为配置文件,pid 文件均在默认位置,即 /etc/nginx/nginx.conf 和 /run/nginx.pid) # 测试配置文件语法无误, $ sudo nginx -t # 然后, $ sudo kill -SIGHUP `cat /run/ngi
阅读全文
posted @ 2021-04-11 16:10 Anonymous596
阅读(173)
评论(0)
推荐(0)
2021年4月8日
Screen 简记
摘要: 常用命令如下, $ screen -S yourname # 新建一个叫 yourname 的 session $ screen -ls # 列出当前所有的 session $ screen -r yourname # 回到 yourname 这个 session Ctrl + a
阅读全文
posted @ 2021-04-08 20:16 Anonymous596
阅读(62)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
23
下一页
公告