
ubuntu
文章平均质量分 51
Henry_Wu001
这个作者很懒,什么都没留下…
展开
-
ubuntu20.04 安装Kubernetes
通过以上步骤,我们成功地在国内环境下安装了Kubernetes,并部署了一个简单的应用。转载 2025-02-28 18:02:54 · 108 阅读 · 0 评论 -
ubuntu20.04 突破文件数限制
确保 PAM 配置文件允许文件描述符的增加。通过以上步骤,你可以将 Ubuntu 20.04 系统配置为支持 10 万以上的连接。这种方法是临时的,仅对当前会话有效。如果你希望永久更改限制,需要修改系统配置文件。主要的调整项包括增加文件描述符限制、修改端口范围、调整 TCP 设置和内核缓冲区。这会增加系统可以接受的 TCP 同步连接请求的最大数量,以及增加监听队列的大小。设置完成后,系统应该能够承载大量的并发连接。1.4 修改系统级别的文件描述符限制。3.2 增加 TCP 连接的最大数目。原创 2025-02-25 14:35:57 · 707 阅读 · 0 评论 -
ubuntu20.04安装docker
3台主机,2台都能正确安装,第三台怎么都安装不成功;3台主机都是一样的配置和系统;后来看来是其外网的ip不一样,导致第三台主机可能被Qiang,不过错误只是提示签名不正确,在设置签名时好像没有提示错误,只是在apt update时报错。后改为阿里的源安装成功了。以下安装参考(原创 2025-02-25 10:00:13 · 964 阅读 · 0 评论 -
ubuntu 安全策略(等保)
2、以 root 权限账户登录系统,使用命令#cat /etc/pam.d/system-auth(或#cat /etc/pam.d/sshd),查看文件中是否配置登录失败锁定策略,并对 root 用户生效。通过 vim /ets/pam.d/system-auth 进入编辑在第二行添加内容even deny root也限制root 用户:(1、在系统中新建测试用户,使用此用户登录时多次输入错误密码,核查登录失败处理功能是否成功启用;设定普通用户锁定后,多少时间后解锁,按照提示设置密码和用户信息。原创 2025-02-25 08:44:46 · 569 阅读 · 0 评论 -
ubuntu下用odbc.ini连接数据库
·····转载 2024-07-25 20:21:46 · 422 阅读 · 0 评论 -
docker编译一个支持flv的nginx镜像
不想执行最后一步make install而污染本地系统,编译时缺少openssl报错。所以就放docker里面去了。原创 2024-06-12 13:58:24 · 673 阅读 · 0 评论 -
StackExchange.Redis 高并发下timeout超时问题如何解决?
按GitHub的issue提示,这2个Busy的数量不能比Min的大,即要提示Min的数值;按里面有参考的连接如下,果然没有这个错误了。原创 2023-11-14 12:04:47 · 2895 阅读 · 0 评论 -
在 Ubuntu16 上从源代码安装 Python 3.12
请注意,Python 模块是通过 PIP 进行管理的。PIP 是一个包管理系统,用于从 Python 包索引下载和添加库。如果您想在下一个 Python 项目中使用其他模块,那么在系统上安装 Python PIP 非常重要。您还可以从官方 Python 网站下载并构建最新版本的 Python。尽管编译源代码一开始可能看起来有点令人畏惧,但一旦您了解了该过程,它就会变得更容易。安装Python之前需要进行测试和优化。来检查 Python 是否已正确安装在您的计算机上。执行这些步骤后,请在终端中输入。转载 2023-11-05 10:43:56 · 998 阅读 · 0 评论 -
ubuntu22.04 dotnet6
set tabstop=4表示Tab表示4个空格的宽带。set expandtab 表示Tab自动转换成空格。set autoindent表示换行后自动缩进。set number 显示行号。原创 2023-03-07 13:44:23 · 385 阅读 · 0 评论 -
Linux进程守护—Supervisor(ubuntu)
Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式把这些被管理的进程当作supervisor的子进程来启动,这样只要在supervisor的配置文件中,把要管理的进程的可执行文件的路径写进去即可。如果我们需要管理的进程比较多的话,建议每个进程单独一个配置文件,然后在supervisord.conf文件中的[include]项增加对配置文件的引入。去掉下面配置项前面的“;转载 2023-02-24 19:17:12 · 1028 阅读 · 0 评论 -
ubuntu 创建新用户并添加到docker组
【代码】ubuntu 创建新用户并添加到docker组。原创 2023-02-02 10:34:33 · 971 阅读 · 0 评论 -
ubuntu命令行 播放音乐
ubuntu命令行 播放音乐,调整音量原创 2022-06-11 17:13:16 · 878 阅读 · 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 · 194 阅读 · 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 · 217 阅读 · 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 · 11362 阅读 · 0 评论 -
解决 linux下编译make文件报错“/bin/bash^M: 坏的解释器:没有那个文件或目录” 问题
refs:http://blog.youkuaiyun.com/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 · 999 阅读 · 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 · 502 阅读 · 0 评论 -
ubuntu server 安装 oracle java8
refs:http://blog.youkuaiyun.com/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 · 951 阅读 · 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 · 2624 阅读 · 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 · 2509 阅读 · 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 · 441 阅读 · 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 · 1172 阅读 · 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 · 478 阅读 · 0 评论 -
haproxy tcp可用配置
root@ubuntu:/etc/haproxy# service haproxy reload * Reloading haproxy haproxy原创 2016-06-15 16:42:18 · 1948 阅读 · 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 · 1228 阅读 · 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 · 492 阅读 · 0 评论 -
linux下的开源移动图像监测程序--motion编译与配置
refs:http://www.cnblogs.com/qinyg/archive/2013/11/25/3355707.html所谓移动图像监测,简单来说就是利用摄像头定点监测某个区域,当有移动物体经过时,摄像头便自动抓拍(要监测多大物体、按拍照速率都是可调的),并把拍到的图像存储在指定目录,实现无人监控功能。motion 是一套免费开源的移动图像监测程序(详转载 2017-09-05 12:02:02 · 1953 阅读 · 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 · 1069 阅读 · 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 · 435 阅读 · 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 · 429 阅读 · 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 · 416 阅读 · 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 · 1123 阅读 · 0 评论 -
Ubuntu安装配置Mysql
refs:http://www.cnblogs.com/wuhou/archive/2008/09/28/1301071.html三种安装方式: 1. 从网上安装 sudo apt-get install mysql-server。装完已经自动配置好环境变量,可以直接使用mysql的命令。 注:建议将/etc/apt/source.list中的cn改成us,美国的服转载 2014-09-30 22:10:33 · 495 阅读 · 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 · 819 阅读 · 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 · 2182 阅读 · 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 · 3981 阅读 · 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 · 1526 阅读 · 0 评论 -
ibus随机启动
refs: 前几天笔者重装了系统,可是重装之后ibus输入法不能随机自动启动,每次都得手动启动ibus才能使用输入法,很是麻烦,到网上搜了一下,发现有好多方法来解决这个问题,可是试了一下,大部分都是扯蛋的,根本不管用,不过最终却也让我试出了几种方法,现归纳如下 ibus只所以不能随机启动,是因为ubuntu在在英语环境下默认不启动ibus,如果想让其开机自动启动,可以使用转载 2014-06-28 09:10:07 · 1079 阅读 · 0 评论 -
磁盘分区错误,导致分区不能挂载
1)添加一个分区后导致原来某个分区处于unallocated状态原创 2014-06-08 18:04:59 · 4654 阅读 · 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 · 882 阅读 · 0 评论