ubuntu
Henry_Wu001
这个作者很懒,什么都没留下…
展开
-
StackExchange.Redis 高并发下timeout超时问题如何解决?
按GitHub的issue提示,这2个Busy的数量不能比Min的大,即要提示Min的数值;按里面有参考的连接如下,果然没有这个错误了。原创 2023-11-14 12:04:47 · 1138 阅读 · 0 评论 -
在 Ubuntu16 上从源代码安装 Python 3.12
请注意,Python 模块是通过 PIP 进行管理的。PIP 是一个包管理系统,用于从 Python 包索引下载和添加库。如果您想在下一个 Python 项目中使用其他模块,那么在系统上安装 Python PIP 非常重要。您还可以从官方 Python 网站下载并构建最新版本的 Python。尽管编译源代码一开始可能看起来有点令人畏惧,但一旦您了解了该过程,它就会变得更容易。安装Python之前需要进行测试和优化。来检查 Python 是否已正确安装在您的计算机上。执行这些步骤后,请在终端中输入。转载 2023-11-05 10:43:56 · 558 阅读 · 0 评论 -
ubuntu22.04 dotnet6
set tabstop=4表示Tab表示4个空格的宽带。set expandtab 表示Tab自动转换成空格。set autoindent表示换行后自动缩进。set number 显示行号。原创 2023-03-07 13:44:23 · 236 阅读 · 0 评论 -
Linux进程守护—Supervisor(ubuntu)
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式把这些被管理的进程当作supervisor的子进程来启动,这样只要在supervisor的配置文件中,把要管理的进程的可执行文件的路径写进去即可。如果我们需要管理的进程比较多的话,建议每个进程单独一个配置文件,然后在supervisord.conf文件中的[include]项增加对配置文件的引入。去掉下面配置项前面的“;转载 2023-02-24 19:17:12 · 863 阅读 · 0 评论 -
ubuntu 创建新用户并添加到docker组
【代码】ubuntu 创建新用户并添加到docker组。原创 2023-02-02 10:34:33 · 758 阅读 · 0 评论 -
ubuntu命令行 播放音乐
ubuntu命令行 播放音乐,调整音量原创 2022-06-11 17:13:16 · 691 阅读 · 0 评论 -
docker at Ubuntu
https://docs.docker.com/install/linux/docker-ce/ubuntu/https://www.cnblogs.com/walker-lin/p/11214127.html1)参考安装好docker后默认是sudo用户才能操作2)将非root用户加入docker组,以允许免sudo执行dockersudo gpasswd -a 用...原创 2020-01-08 16:22:11 · 134 阅读 · 0 评论 -
win10 docker体验
1)window 10 home版本方法1:安装hyperV,使能内核虚拟化,修改注册表,改为pro/enterprise win10方法2:为避免麻烦还是想办法变成了pro版本。2)docker hub加速,必须有阿里云账号,Docker国内源说明:Docker 官方中国区https://registry.docker-cn.com网易http://hub-...原创 2019-12-27 13:21:28 · 153 阅读 · 0 评论 -
ubuntu docker redis
refs:http://www.sxt.cn/info-2646-u-756.htmlhttps://github.com/docker-library/docs/tree/master/redishttps://github.com/dockerfile/redis//测试有效docker run -d -p 6380:6379 -v /root/tmp/d转载 2015-11-30 17:31:44 · 453 阅读 · 0 评论 -
apt-get update 过期
refs:http://unix.stackexchange.com/questions/2544/how-to-work-around-release-file-expired-problem-on-a-local-mirrorapt-get update 过期,E: Release file for http://ftp.at.debian.org/debian-bac原创 2016-03-21 21:50:22 · 2362 阅读 · 0 评论 -
ubuntu 终端修改ls文件的字体颜色
refs:http://jingyan.baidu.com/article/eae07827a01fbf1fec54859a.htmlhttp://blog.sina.com.cn/s/blog_6aefe4250101be6n.html虚拟机中的ubuntu server终端ls的颜色太蓝以至于看不清了,由于没有用putty等工具,所以自己修改terminal中的字体颜色。转载 2016-02-25 09:11:09 · 2540 阅读 · 0 评论 -
ubuntu server 安装 oracle java8
refs:http://blog.csdn.net/caspiansea/article/details/24854563http://lifeonubuntu.com/ubuntu-missing-add-apt-repository-command/1)系统缺少add-apt-repository指令,所以要先添加该指令$ sudo apt-get update原创 2015-08-17 10:58:27 · 906 阅读 · 0 评论 -
Hudson-ci/Using Hudson/Installing Hudson/Installing Hudson DEB
refs:https://wiki.eclipse.org/Hudson-ci/Using_Hudson/Installing_Hudson/Installing_Hudson_DEB转载 2016-03-04 13:36:47 · 436 阅读 · 0 评论 -
解决 linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
refs:http://blog.csdn.net/liuqiyao_01/article/details/41542101在win下编辑的时候,换行结尾是\n\r , 而在linux下 是\n,所以才会有 多出来的\r 用指令:[plain] view plaincopysed -i 's/\r$//' build.sh转载 2016-02-04 14:59:52 · 922 阅读 · 0 评论 -
cron表达式详解
refs:http://www.cnblogs.com/linjiqin/archive/2013/07/08/3178452.htmlCron表达式是一个字符串,字符串以5或6个空格隔开,分为6或7个域,每一个域代表一个含义,Cron有如下两种语法格式: Seconds Minutes Hours DayofMonth Month DayofWeek Year或转载 2016-02-02 09:50:47 · 367 阅读 · 0 评论 -
使用mutt+msmtp做linux邮件客户端
refs:http://www.cnblogs.com/xiazh/archive/2011/04/15/2016966.htmlhttp://huangrs.blog.51cto.com/2677571/788379http://www.wilf.cn/post/centos-mutt-msmtp-setup.html sudo apt-get install msmtp转载 2015-12-24 17:08:37 · 1029 阅读 · 0 评论 -
ubuntu bottom
将 Ubuntu 16.04 LTS 的 Unity 启动器移动到桌面底部命令:gsettings set com.canonical.Unity.Launcher launcher-position Bottom恢复到原来的左侧命令:gsettings set com.canonical.Unity.Launcher launcher-position Left转载 2016-06-10 11:58:18 · 403 阅读 · 0 评论 -
“no public key available” while upgrading using update-manager
refs:http://askubuntu.com/questions/520718/no-public-key-available-while-upgrading-using-update-managerThis warning means that you don't have the corresponding public keys for these reposito转载 2016-06-10 18:01:36 · 1119 阅读 · 0 评论 -
Genymotion Error in Ubuntu 14.04/ LTS
refs:http://stackoverflow.com/questions/26869830/genymotion-error-in-ubuntu-14-04-ltsgenymotion: error while loading shared libraries: libgstapp-0.10.so.0: cannot open shared object file: No转载 2016-06-10 18:30:18 · 423 阅读 · 0 评论 -
单机服务器可以最多有多少连接?
refs:https://stackoverflow.com/questions/651665/how-many-socket-connections-possiblehttp://www.lenholgate.com/blog/2005/11/windows-tcpip-server-performance.html1)linux 服务器通过修改 file-max,可以到达数百...转载 2019-03-11 17:15:50 · 357 阅读 · 0 评论 -
squit ubuntu aws proxy
1)apt install squit2)modify /etc/squit/ config file, ip,port3)modify aws manage page ,to allow port in原创 2017-09-16 15:29:38 · 377 阅读 · 0 评论 -
dotnet core publish and run
refs:ubuntu下运行环境安装:https://www.microsoft.com/net/core#linuxubuntu发布运行http://www.cnblogs.com/linezero/p/5475246.html 在工程目录根目录下Windows:这里默认输入 dotnet publish 会发布 win7-x6转载 2017-09-06 17:53:35 · 960 阅读 · 0 评论 -
linux下的开源移动图像监测程序--motion编译与配置
refs:http://www.cnblogs.com/qinyg/archive/2013/11/25/3355707.html所谓移动图像监测,简单来说就是利用摄像头定点监测某个区域,当有移动物体经过时,摄像头便自动抓拍(要监测多大物体、按拍照速率都是可调的),并把拍到的图像存储在指定目录,实现无人监控功能。motion 是一套免费开源的移动图像监测程序(详转载 2017-09-05 12:02:02 · 1864 阅读 · 0 评论 -
How to stream a webcam to a web browser in Ubuntu
refs:https://gist.github.com/endolith/2052778First install motion:~> sudo apt-get install motionThen create a config file:~> mkdir ~/.motion~> nano ~/.motion/motion.confIn转载 2017-09-05 11:59:02 · 419 阅读 · 0 评论 -
mosquitto源码编译依赖项
ubuntu16.04,mosquito1.4.8sudo apt-get install libssl-devsudo apt-get install libc-ares-dev libc-ares2sudo apt-get install uuid-dev原创 2017-07-19 15:50:00 · 1149 阅读 · 0 评论 -
haproxy tcp可用配置
root@ubuntu:/etc/haproxy# service haproxy reload * Reloading haproxy haproxy原创 2016-06-15 16:42:18 · 1872 阅读 · 0 评论 -
ubuntu docker redis
refs:http://blog.csdn.net/yangzhenping/article/details/422972051. Ubuntu14.04安装docker(apt 安装后是1.6)sudo apt-get install docker-io2. 拉取redis镜像root@jumping:~# sudo docker pull r转载 2015-11-30 15:43:24 · 479 阅读 · 0 评论 -
How To Install Apache Kafka on Ubuntu 14.04
refs:https://www.digitalocean.com/community/tutorials/how-to-install-apache-kafka-on-ubuntu-14-04IntroductionApache Kafka is a popular distributed message broker designed to handle large转载 2015-12-09 16:13:48 · 438 阅读 · 0 评论 -
pip代理遇到问题
sudo -E cmd使用当前用户的环境变量执行 -E The -E (preserve environment) option will override the env_reset option in sudoers(5)). It is only available when原创 2014-09-30 15:54:05 · 748 阅读 · 0 评论 -
sudo: cd: command not found
refs:http://www.linuxdiyf.com/viewarticle.php?id=205268$cd ~$cd /rootbash: cd: /root: 权限不够~$sudo !!sudo cd /rootsudo: cd: command not found~$转载 2014-10-25 21:01:09 · 2103 阅读 · 0 评论 -
ubuntu server certificate verification failed.
用https的方式check out 代码:git clone https://....报错,说证书校验有问题:error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none最简单的解决方法是加一个环境变量:expo转载 2014-07-06 20:15:17 · 3908 阅读 · 0 评论 -
ubuntu mount hfsplus partiton
sudo apt-get install hfsprogsNext, mount or remount the HFS+ drive; commands need to be as follows:sudo mount -t hfsplus -o force,rw /dev/sdx# /media/mntpointorsudo mount -t hfsplus -o r转载 2014-06-13 20:48:14 · 1451 阅读 · 0 评论 -
ibus随机启动
refs: 前几天笔者重装了系统,可是重装之后ibus输入法不能随机自动启动,每次都得手动启动ibus才能使用输入法,很是麻烦,到网上搜了一下,发现有好多方法来解决这个问题,可是试了一下,大部分都是扯蛋的,根本不管用,不过最终却也让我试出了几种方法,现归纳如下 ibus只所以不能随机启动,是因为ubuntu在在英语环境下默认不启动ibus,如果想让其开机自动启动,可以使用转载 2014-06-28 09:10:07 · 895 阅读 · 0 评论 -
磁盘分区错误,导致分区不能挂载
1)添加一个分区后导致原来某个分区处于unallocated状态原创 2014-06-08 18:04:59 · 4048 阅读 · 0 评论 -
开放ubuntu server的指定端口
refs:http://askubuntu.com/questions/293356/how-to-open-a-particular-port-in-ubuntuRun this on the commandline; it should solve issue: sudo iptables -A INPUT -m conntrack --ctstate NEW,RELA转载 2014-02-13 09:16:22 · 11180 阅读 · 0 评论 -
一个简单gtk程序
参考:http://forum.ubuntu.org.cn/viewtopic.php?t=179405 附件文档。1)在前文已经搭建好的环境下。2)vi编写code#include int main(int argc,char *argv[]){ GtkWidget *window; gtk_init(&argc,&argv); wi原创 2013-08-25 21:36:25 · 802 阅读 · 0 评论 -
ubuntu 12.04 安装 Anjuta
refs:http://www.anjuta.org/downloadshttp://ubuntusoft.diandian.com/?tag=c/c%2B%2Bgoodhttp://blog.chinaunix.net/uid-14358420-id-3447866.htmlhttp://wiki.ubuntu.org.cn/C_Cpp_IDE1)安装原创 2013-08-24 17:21:56 · 919 阅读 · 0 评论 -
linux 桌面开发
Integrated DevelopmentEnvironmentsCode::BlocksVery extensible and fully configurableAnjutaVersatiledevelopment environment for GNOMEEclipseJava based environment combining a原创 2013-08-24 16:11:39 · 905 阅读 · 0 评论 -
build ubuntu touch
refs:https://wiki.ubuntu.com/Touch/Install#Step_1_-_Desktop_Setuphttps://wiki.ubuntu.com/Touch/Building1)似乎要求ubuntu 12.04以上的版本,因为在10.04上添加源没有成功(也有可能是公司网络限制问题) For development you can原创 2013-08-20 09:42:01 · 1492 阅读 · 0 评论 -
2个小脚本
判断分区是否挂载,check_mount.sh #!/bin/baship=$(ifconfig eth0 |grep "inet addr"| cut -f 2 -d ":"|cut -f 1 -d " ")echo "get local server ip:"$ip if [ "$ip" = "10.89.41.201" ];then echo "I'm on 201,no need to原创 2013-08-06 08:43:42 · 613 阅读 · 0 评论