随笔分类 - centos系统
摘要:问题: 我在写了shell文件,创建shell文件sky8g.文件。后使用 chmod +x sky8g.sh给予可执行的权限后再次执行 1 chmod +x toutiao_app.sh 执行shell文件 1 ./toutiao_app.sh 出现下面的报错: 1 /bin/bash^M: ba
阅读全文
摘要:问题如下: [root@localhost network-scripts]# systemctl restart network Job for network.service failed because the control process exited with error code. S
阅读全文
摘要:安装虚拟环境virtualenv和virtualenvwrapper 安装virtualenv virtualenvwrapper pip install virtualenv virtualenvwrapper 如果没有pip 先安装 pip:yum install -y pip 安装好了之后,查
阅读全文
摘要:1. 创建pip.conf文件 首先进入到.pip目录下 cd ~/.pip 如果.pip目录不存在,则手工创建一个 #已经在~目录下 cd ~ mkdir .pip cd ~/.pip 在.pip目录下场景pip.conf文件 touch pip.conf 2. 编辑pip.conf vi pip
阅读全文
摘要:CentOS 7.0自带Python2.7 安装Python3.6步骤 1.安装依赖 1 yum install -y zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gc
阅读全文
摘要:Docker 安装rabbitmq 1.使用带有web管理功能 docker pull rabbitmq:management 2.运行镜像文件创建容器 docker run -d --name rabbitmq -p 5671:5671 -p 5672:5672 -p 4369:4369 -p 2
阅读全文
摘要:问题如下: 解决方式:经检查发现是selinux导致报错。 [root@localhost nginx]# getenforce #查询selinux状态 [root@localhost nginx]# setenforce 0 #临时将selinux关闭 如果需要永久关闭selinux,请编辑/e
阅读全文
摘要:第一步:关闭全部nginx服务 pkill -9 nginx # 运行命令参看nginx服务是否关闭 netstat -tnulp | grep nginx # 参看端口是否关闭 systemctl status nginx # 查看服务是否关闭 关闭后状态: 第二步:加载指定配置文件 nginx
阅读全文
摘要:问题: E325: ATTENTION Found a swap file by the name ".nginx.conf.swp" owned by: root dated: Sat Aug 15 06:38:55 2020 file name: /etc/nginx/nginx.conf mo
阅读全文
摘要:一、意思 #!/bin/sh是指此脚本使用/bin/sh来解释执行,#!是特殊的表示符,其后面根的是此解释此脚本的shell的路径。 其实第一句的#!是对脚本的解释器程序路径,脚本的内容是由解释器解释的,我们可以用各种各样的解释器来写对应的脚本。 比如说/bin/csh脚本,/bin/perl脚本,
阅读全文
摘要:1.配置ubuntu # 设置root账户密码 sudo passwd root # 安装ssh服务 sudo apt install openssh-server # 进入ssh配置文件夹 cd /etc/ssh/ # 修改配置文件sshd_configsudo vim sshd_config #
阅读全文
摘要:Traceback (most recent call last): File "<console>", line 1, in <module> File "d:\software\python\Lib\fdfs_client\client.py", line 90, in upload_by_fi
阅读全文
摘要:参考:https://www.cnblogs.com/liweiweicode/p/11526010.html 1、设置虚拟机 2、网络设置 3、进入centos 设置相关属性 进入网络配置目录: cd /etc/sysconfig/network-scripts/ 1)、每个虚拟机配置的文件名称一
阅读全文
摘要:进入docker配置目录: cd etc/docker创建daemon.json文件: touch daemon.json编辑该文件 : vim daemon.json写入内容:{“registry-mirrors”:[“https://registry.docker-cn.com”]}最后保存,就
阅读全文
摘要:今天准备用虚拟机安装docker发现yum下载不能用了 Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile epel/x86_64/metalink | 6.1 kB 00:00:00 * epel: mi
阅读全文
摘要:查看RabbitMQ启动状态:rabbitmqctl status 链接:https://pan.baidu.com/s/14dqCIAbmRcAp-IJx5HzxYw 提取码:g48t 1.由于RabbitMQ依赖Erlang, 所以需要先安装Erlang。 首先下载Erlang 下载地址 “ht
阅读全文
摘要:1.添加防火墙端口 https://www.cnblogs.com/sewen-H/p/13335508.html 2.修改配置文件 vim redis.conf 修改该配置为no 注释掉bind 127.0.0.1 连接时使用服务器ip不要使用127.0.0.1 重启 systemctl rest
阅读全文
摘要:配置防火墙 添加 firewall-cmd --zone=public --add-port=3306/tcp --permanent 重新载入 firewall-cmd --reload 查看 查看所有打开的端口: firewall-cmd --zone=public --list-ports 删
阅读全文
摘要:(env) D:\python_learn\meiduo_project\meiduo_mall>python manage.py makemigrations Traceback (most recent call last): File "manage.py", line 22, in <mod
阅读全文
摘要:一、安装gcc依赖 由于 redis 是用 C 语言开发,安装之前必先确认是否安装 gcc 环境(gcc -v),如果没有安装,执行以下命令进行安装 [root@localhost local]# yum install -y gcc 二、下载并解压安装包 [root@localhost local
阅读全文

浙公网安备 33010602011771号