随笔分类 -  Linux

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页
摘要:环境查看 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) [root@localhost ~]# uname -a Linux localhost.localdomain 3.10.0- 阅读全文
posted @ 2023-11-07 17:55 minseo 阅读(494) 评论(2) 推荐(0)
摘要:CentOS7设置开机自启动 设置一个脚本 cat /usr/local/bin/startup.sh brctl addbr br0 && brctl addif br0 em1 && ip addr del dev em1 192.168.3.198/24 && ifconfig br0 192 阅读全文
posted @ 2023-11-07 17:34 minseo 阅读(457) 评论(0) 推荐(0)
摘要:参考:https://www.ihuyi.com/pd/ssl/opensslshengchengsslzhengshu.html SSL证书是网站安全的基石,为了保证网站数据传输的安全性,需要使用SSL证书。而在实际项目中,通常选用 openssl 命令来生成 SSL 证书。通过 openssl 阅读全文
posted @ 2023-10-09 16:42 minseo 阅读(992) 评论(0) 推荐(0)
摘要:报错如下 ``` Loaded plugins: fastestmirror, update-motd Loading mirror speeds from cached hostfile http://mirrors.163.com/centos/7-7.1908.0.el7.centos/os/ 阅读全文
posted @ 2023-08-01 16:38 minseo 阅读(3094) 评论(0) 推荐(0)
摘要:我们想要知道一个程序从运行到打开的响应时间可以使用strace命令测试 写一个运行打开某个程序的脚本例如一下脚本可以打开wps test.sh ``` #!/bin/bash #/usr/bin/google-chrome-stable www.baidu.com /usr/bin/wps #/us 阅读全文
posted @ 2023-07-06 15:49 minseo 阅读(93) 评论(0) 推荐(0)
摘要:Linux系统需要添加一个桌面快捷方式链接到网站可以编辑在桌面编辑文档 > 注意:文件需要以desktop为后缀 index.desktop 内容如下 ``` [Desktop Entry] Encoding=UTF-8 Name=OutLook Type=Application Icon=/hom 阅读全文
posted @ 2023-06-28 11:09 minseo 阅读(663) 评论(0) 推荐(0)
摘要:Linux系统如果需要使用Windows下字体可以使用以下方法 ![image](https://img2023.cnblogs.com/blog/1144139/202306/1144139-20230625112838048-1954895238.jpg) 例如Linux下应用WPS需要使用微软 阅读全文
posted @ 2023-06-25 11:33 minseo 阅读(992) 评论(0) 推荐(0)
摘要:环境查看 安装docker和docker-compose apt -y install docker.io docker-compose 设置docker-compose配置文件 root@iZ2zebcd9hncu1371fetliZ:/data/docker-compose# pwd /data 阅读全文
posted @ 2023-06-20 13:59 minseo 阅读(307) 评论(0) 推荐(0)
摘要:https://blog.csdn.net/weixin_49223002/article/details/121038236 ![image](https://img2023.cnblogs.com/blog/1144139/202306/1144139-20230617181914202-125 阅读全文
posted @ 2023-06-17 18:19 minseo 阅读(45) 评论(0) 推荐(0)
摘要:信创电脑浏览器添加收藏夹之后会生成收藏夹配置文件路径为 已谷歌浏览器为例,文件为 ``` $HOME/.config/google-chrome/Default/Bookmarks ``` 如果是其他浏览器则查找对应浏览器名称在对应路径 阅读全文
posted @ 2023-05-25 16:33 minseo 阅读(175) 评论(0) 推荐(0)
摘要:参考:https://zhuanlan.zhihu.com/p/366035779 模板目录 ``` /etc/skel ``` 针对不同登录用户的家目录的模板目录,可以在这个目录放置配置文件文件夹,不同的登录用户可以自动调用该目录作为模板 skel 是 skeleton 的缩写,每当你新建一个用户 阅读全文
posted @ 2023-05-25 13:58 minseo 阅读(64) 评论(0) 推荐(0)
摘要:字符串列表定义方法 已空格分割 a=(1 2 3 4) 输出列表所有元素 echo ${a[*]} 输出列表下标 echo ${!a[*]} 通过下标输出元素 下标已0开始 # echo ${a[0]} 输出列表长度 echo ${#a[*]} 列表循环 for i in ${a[*]} do ec 阅读全文
posted @ 2023-04-28 17:01 minseo 阅读(1114) 评论(0) 推荐(0)
摘要:简介 信创运维一体化平台是面向中小型企业设计的轻量级无Agent的自动化运维平台,整合了主机管理、主机批量执行、主机在线终端、应用发布部署、在线任务计划、配置中心、监控、报警等一系列功能。 安装 Docker安装 安装docker yum install -y yum-utils yum-confi 阅读全文
posted @ 2022-09-02 08:49 minseo 阅读(535) 评论(0) 推荐(0)
摘要:使用Docker启动端口无法telnet https://blog.csdn.net/lyd135364/article/details/118369692 #echo 1 > /proc/sys/net/ipv4/ip_forward # sysctl -p 阅读全文
posted @ 2022-09-01 20:18 minseo 阅读(748) 评论(0) 推荐(0)
摘要:现象 执行Python脚本提示没有_bz2模块 No module named _bz2 原因分析 这个库不是用python写的库,而是c语言写的系统动态库,这种库属于Python的底层库,得在编译Python阶段一起编译进去才能用 解决方法 使用uos或root用户执行安装bz2 sudo apt 阅读全文
posted @ 2022-05-23 14:36 minseo 阅读(1116) 评论(0) 推荐(1)
摘要:本文参考 https://blog.csdn.net/qq_41999034/article/details/110942059 docker容器启动报错 报错内容如下 Error response from daemon: error creating overlay mount to /var/ 阅读全文
posted @ 2022-04-14 13:46 minseo 阅读(1682) 评论(0) 推荐(0)
摘要:本文参考 http://www.uostools.com LiveCD工具介绍 本工具可以协助运维人员处理忘记密码、磁盘空间满、账号被锁定、分区修复等问题,降低运维难度。 livecd工具下载地址 livecd工具的下载地址为 http://www.uostools.com 请根据系统构架下载对应的 阅读全文
posted @ 2022-04-07 09:46 minseo 阅读(15788) 评论(0) 推荐(0)
摘要:前提 DEB是Debian的二进制安装包,但有时候我们从网站上只能得到源码包,这就需要自己编译安装了,但我们也可以把源码打包成DEB。 安装checkinstall sudo apt-get install checkinstall 示例 已nginx源码为示例演示打包成deb的过程 环境查看 # 阅读全文
posted @ 2022-04-06 16:40 minseo 阅读(1469) 评论(0) 推荐(0)
摘要:环境查看 # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.5 (Maipo) # uname -a Linux local-kingbase-003064 4.18.0-80.nk7.12.x86_64 #1 S 阅读全文
posted @ 2022-04-06 14:30 minseo 阅读(908) 评论(0) 推荐(0)
摘要:本文参考 https://blog.csdn.net/qq_20105831/article/details/89361472 使用pip安装python-ldap报错,报错信息如下 In file included from Modules/LDAPObject.c:8:0: Modules/co 阅读全文
posted @ 2022-04-02 12:22 minseo 阅读(433) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 8 9 10 ··· 19 下一页