CentOS

Django Celery Beat admin updating Cron Schedule Periodic task not taking effect

拈花ヽ惹草 提交于 2021-02-06 20:47:03
问题 I'm running a site using Django 10, RabbitMQ, and Celery 4 on CentOS 7. My Celery Beat and Celery Worker instances are controlled by supervisor and I'm using the django celery database scheduler. I've scheduled a cron style task using the cronsheduler in Django-admin. When I start celery beat and worker instances the job fires as expected. But if a change the schedule time in Django-admin then the changes are not picked up unless I restart the celery-beat instance. Is there something I am

Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-06 20:00:19
问题 I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize the GPU available on the vm. When I try running google-chrome I get following error: [19615:19615:0219/152933.751028:ERROR:browser_main_loop.cc(1512)] Unable to open X display. I've tried to setting my DISPLAY env value to various values: export DISPLAY=localhost:0.0 export DISPLAY=127.0.0.1:0.0 export DISPLAY=:0.0 I've also tried replacing 0.0 in abowe examples with different

Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

喜夏-厌秋 提交于 2021-02-06 19:57:10
问题 I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize the GPU available on the vm. When I try running google-chrome I get following error: [19615:19615:0219/152933.751028:ERROR:browser_main_loop.cc(1512)] Unable to open X display. I've tried to setting my DISPLAY env value to various values: export DISPLAY=localhost:0.0 export DISPLAY=127.0.0.1:0.0 export DISPLAY=:0.0 I've also tried replacing 0.0 in abowe examples with different

glusterfs分布式存储

ⅰ亾dé卋堺 提交于 2021-02-06 17:26:59
一,分布式文件系统理论基础 1.1 分布式文件系统出现 计算机通过文件系统管理,存储数据,而现在数据信息爆炸的时代中人们可以获取的数据成指数倍的增长,单纯通过增加硬盘个数来扩展计算机文件系统的存储容量的方式,已经不能满足目前的需求。 分布式文件系统可以有效解决数据的存储和管理难题,将固定于某个地点的某个文件系统,扩展到任意多个地点/多个文件系统,众多的节点组成一个文件系统网络。每个节点可以分布在不同的地点,通过网络进行节点间的通信和数据传输。人们在使用分布式文件系统时,无需关心数据是存储在哪个节点上,或者是从哪个节点从获取的,只需要像使用本地文件系统一样管理和存储文件系统中的数据。 1.2 典型代表NFS NFS(Network File System)即网络文件系统,它允许网络中的计算机之间通过TCP/IP网络共享资源。在NFS的应用中,本地NFS的客户端应用可以透明地读写位于远端NFS服务器上的文件,就像访问本地文件一样。NFS的优点如下: (1)节约使用的磁盘空间 客户端经常使用的数据可以集中存放在一台机器上,并使用NFS发布,那么网络内部所有计算机可以通过网络访问,不必单独存储。 (2)节约硬件资源 NFS还可以共享软驱,CDROM和ZIP等的存储设备,减少整个网络上的可移动设备的数量。 (3)用户主目录设定 对于特殊用户,如管理员等,为了管理的需要

MySQL ERROR 2026 - SSL connection error - Ubuntu 20.04

て烟熏妆下的殇ゞ 提交于 2021-02-06 15:22:04
问题 I've recently upgraded my local machine OS from Ubuntu 18.04 to 20.04, I'm running my MySQL-server on CentOS (AWS). Post upgrade whenever I'm trying to connect to MySQL server it is throwing SSL connection error. $ mysql -u yamcha -h database.yourproject.com -p --port 3309 ERROR 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol But if I pass --ssl-mode=disabled option along with it, I'm able to connect remotely. $ mysql -u yamcha -h

MySQL ERROR 2026 - SSL connection error - Ubuntu 20.04

半腔热情 提交于 2021-02-06 15:19:17
问题 I've recently upgraded my local machine OS from Ubuntu 18.04 to 20.04, I'm running my MySQL-server on CentOS (AWS). Post upgrade whenever I'm trying to connect to MySQL server it is throwing SSL connection error. $ mysql -u yamcha -h database.yourproject.com -p --port 3309 ERROR 2026 (HY000): SSL connection error: error:1425F102:SSL routines:ssl_choose_client_version:unsupported protocol But if I pass --ssl-mode=disabled option along with it, I'm able to connect remotely. $ mysql -u yamcha -h

CentOS 安装lamp和phpmyadmin

隐身守侯 提交于 2021-02-06 10:29:26
建立自启动脚本: 从网站下载安装包:https://bitnami.com/stack/lamp chmod 755 bitnami-APPNAME-VERSION-linux.run ./bitnami-APPNAME-VERSION-linux.run 修改mysql绑定的127.0.0.1。 cd /opt/lampstack/mysql vi my.cnf 注释bind-address = 127.0.0.1 [mysqladmin] user=root [mysqld] basedir=/opt/lampstack/mysql datadir="/opt/lampstack/mysql/data" port=3306 socket=/opt/lampstack/mysql/tmp/mysql.sock tmpdir=/opt/lampstack/mysql/tmp max_allowed_packet=32M #bind-address=127.0.0.1 skip-name-resolve=1 character-set-server=UTF8 collation-server=utf8_general_ci [client] port=3306 socket=/opt/lampstack/mysql/tmp/mysql.sock default-character

Address family not supported by protocol

空扰寡人 提交于 2021-02-06 10:17:46
问题 Following code is a socket programming sample for a TCP client. But when I run this, connect() is returned as Address family not supported by protocol. I have heard, this problem will happen if the platform does not support ipv6. But AF_INET I wrote is ipv4. Also my server, that is CentOS6.4, is configured within an inet6 addr . Does anyone know why? #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> int main(){ struct sockaddr_in

How to install specific version of Docker on Centos?

牧云@^-^@ 提交于 2021-02-06 09:17:48
问题 I tried to install docker 1.8.2 on Centos7. The docs don't tell anything about versioning. Someone who can help me? I tried wget -qO- https://get.docker.com/ | sed 's/lxc-docker/lxc-docker-1.8.2/' | sh + sh -c 'sleep 3; yum -y -q install docker-engine' but didn't work. EDIT: I performed: yum install -y http://yum.dockerproject.org/repo/main/centos/7/Packages/docker-engine-1.8.2-1.el7.centos.x86_64.rpm That works but I miss options as docker-storage-setup and docker-fetch 回答1: So you can use

Linux文件系统管理

本秂侑毒 提交于 2021-02-06 09:02:29
Linux文件系统管理 1 Linux系统目录命名规则与用途 1.1 文件系统目录结构 文件和目录被组织成一个单根倒置树结构 文件系统从根目录下开始,用“/”表示 标准Linux文件系统(如:ext4),文件名称大小写敏感。 以.开头的文件为隐藏文件 路径分隔的 / 文件名最长255个字节 包括路径在内文件名称最长4095个字节 蓝色-->目录 绿色-->可执行文件 红色-->压缩文件 浅蓝色-->链接文件 灰色-->其他文件 除了斜杆和NUL,所有字符都有效,有些字符需要用引号来引用 每个文件都有两类相关数据:元数据:metadata,即属性;数据:data,即文件内容 1.2 常见文件系统目录功能 /boot:引导文件存放目录,内核文件(vmlinuz)、引导加载器(bootloader,grub)都存放于此目录 /bin:所有用户使用的基本命令,不能关联至独立分区,OS启动即会用到的程序 /sbin:管理类的基本命令,不能关联至独立分区,OS启动即会用到的程序 /lib:启动时程序依赖的基本共享库文件已经内核模块文件(/lib/modules) /lib64:专用于X86_64系统上的辅助共享文件存放文件 /etc:配置文件目录 /home/USERNAME:普通用户Home目录 /root:管理员家目录 /media:便携式移动设备挂载点 /mnt:临时文件系统挂载点