在centos7.5中解决bash: pip:command not find 问题 [root@localhost ~]# python get-pip.py Hi there! The URL you are using to fetch this script has changed, and ...
分类:
其他好文 时间:
2021-04-08 13:04:02
阅读次数:
0
网上很多帖子有在Linux上安装Redis的分享,这里我就不再多介绍。 redis在centos7中的开机自启在系统服务目录里创建redis.service文件 vi /etc/systemd/system/redis.service 写入以下内容:[Unit]Description=redis-s ...
分类:
系统相关 时间:
2021-03-31 12:13:38
阅读次数:
0
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以需要赋予其可执行权 chmod +x /etc/rc.d/rc.local 2、赋予脚本可执行权限假设/usr/local/script/autostart.sh是你的脚本路径,给予执行权限 chmod +x /usr ...
分类:
其他好文 时间:
2020-12-09 12:19:52
阅读次数:
5
Cobbler自动化部署 cobbler简介 Cobbler 可以用来快速建立 Linux 网络安装环境,它已将Linux网络安装的技术门槛,从大专以上文化水平,成功降低到了初中水平,连补鞋匠都能学会。网络安装服务器套件Cobbler(补鞋匠)从前,我们一直在装机民工这份很有前途的职业。自打若干年前 ...
分类:
其他好文 时间:
2020-12-02 12:15:52
阅读次数:
4
1、在CentOS7中使用gpg创建RSA非对称密钥[root@centos7~]#gpg--gen-keygpg(GnuPG)2.0.22;Copyright(C)2013FreeSoftwareFoundation,Inc.Thisisfreesoftware:youarefreetochangeandredistributeit.ThereisNOWARRANTY,totheextentpe
分类:
其他好文 时间:
2020-09-17 15:57:37
阅读次数:
22
数据库备份1、在 CentOS7 中安装 rsyncyum -y install rsync2、用密钥实现免密登录由于需要使用命令行传输文件,不方便输入密码,所以在服务器 A 中配置 ssh 免密登录,配置成功后,服务器 A 登录服务器 B 时就不需要输入密码就可以登录了。 (1)生成公钥 在服务器 ...
分类:
数据库 时间:
2020-07-30 18:21:55
阅读次数:
98
一、添加开机自启服务 在centos7中添加开机自启服务非常方便,只需要两条命令(以Jenkins为例): systemctl enable jenkins.service #设置jenkins服务为自启动服务 sysstemctl start jenkins.service #启动jenkins服 ...
分类:
其他好文 时间:
2020-07-11 23:11:48
阅读次数:
89
查看系统原有Python 注:可以将python指向python3,但必须修改一些命令如yum的配置,不然会报错。 安装依赖 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-de ...
分类:
编程语言 时间:
2020-07-06 17:49:38
阅读次数:
75
centos6中防火墙是iptables,centos7中防火墙是firewalld 在centos7中用service iptables status查看防火墙状态会报错 Redirecting to /bin/systemctl status iptables.service Unit ipta ...
分类:
其他好文 时间:
2020-07-06 10:48:36
阅读次数:
94
不同于Ubuntu目录 /etc/default/docker。 在 CentOS7中Docker默认配置的路径在 /usr/lib/systemd/system/docker.service 【例如修改 --icc = false】CentOS7中需要如下设置 设置完毕后,执行 docker da ...
分类:
其他好文 时间:
2020-06-20 22:37:16
阅读次数:
98