redhat

如何在RedHat 6.3中安装postgresql93

扶醉桌前 提交于 2019-12-04 13:28:28
第一步:首先安装postgresql93的RPM资料库 wget http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm 第二步:执行命令安装rpm -ivh pgdg-redhat93-9.3-1.noarch.rpm 第三步:执行yum install postgresql93-server postgresql93-contrib 发现如下问题:Error: Package: postgresql93-contrib-9.3.5-1PGDG.rhel6.i686 (pgdg93) Requires: libcrypto.so.10(libcrypto.so.10) ![libcrypto.so.10(libcrypto.so.10)][1] [1]: http://static.oschina.net/uploads/space/2014/0811/032653_pqnq_122078.png 原因居然是openssl的版本不对。解决方案如下: 升级openssl下载openssl10-libs-1.0.1e-1.ius.el6.i686.rpm文件然后用rpm --force -ivh openssl10-libs-1.0.1e-1.ius.el6.i686.rpm

01_Deepin15 下搭建python开发环境

此生再无相见时 提交于 2019-12-04 11:40:25
https://blog.csdn.net/iimpact/article/details/90239193 安装pip redhat@redhat-PC:~$ sudo apt install python3-pip redhat@redhat-PC:~$ sudo apt -f -y install python3-pip pip国内源 mkdir ~/.pip //创建一个.pip目录 vi ~/.pip/pip.conf //创建并修改旗下的pip.conf文件 #写入下面内容 [global] index-url = https://mirrors.aliyun.com/pypi/simple/ [install] trusted-host=mirrors.aliyun.com 来源: https://www.cnblogs.com/venicid/p/11859274.html

Centos 或者 Redhat修改系统时间

二次信任 提交于 2019-12-04 11:01:41
使用Redhat,打开电脑,系统时间比本地时间快一个小时 直接敲命令:date -s "2019-4-2 09:14:00"是立即生效了,但是重启后,系统时间还是原来的。 修改了其一是没有办法奏效,必须两者都更改 修改步骤 [root@foundation78 ~]# date # 查看本地时间 Tue Apr 2 10:14:16 CST 2019 [root@foundation78 ~]# hwclock --show # 查看硬件的时间 Tue 02 Apr 2019 10:12:04 AM CST -0.860111 seconds [root@foundation78 ~]# hwclock --set --date '2019-4-2 09:14:00' # 设置硬件时间 [root@foundation78 ~]# hwclock --hctosys # 设置系统时间和硬件时间同步 [root@foundation78 ~]# clock -w # 保存时钟 [root@foundation78 ~]# date # 再次查看本地时间,修改成功 Tue Apr 2 09:14:57 CST 2019 [root@foundation78 ~]# reboot # 再重启就好了 来源: https://www.cnblogs.com/guarderming/p

Segfault on declaring a variable of type vector<shared_ptr<int>>

孤人 提交于 2019-12-04 09:53:25
问题 Code Here is the program that gives the segfault. #include <iostream> #include <vector> #include <memory> int main() { std::cout << "Hello World" << std::endl; std::vector<std::shared_ptr<int>> y {}; std::cout << "Hello World" << std::endl; } Of course, there is absolutely nothing wrong in the program itself. The root cause of the segfault depends on the environment in which its built and ran. Background We, at Amazon, use a build system which builds and deploys the binaries ( lib and bin )

Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment

不羁的心 提交于 2019-12-04 08:52:07
问题 I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { echo -n "Starting quokkacms: " python3 /var/www/quokka/manage.py runserver --host 0.0.0.0 --port 80 touch /var/lock/subsys/quokkacms return 0 } stop() { echo -n "Shutting down quokkacms: " rm -f /var/lock/subsys/quokkacms return 0 } case "$1" in start) start

redhat quay 安装试用

拜拜、爱过 提交于 2019-12-04 08:47:44
最近redhat 开源了quay 容器镜像管理平台,参考官方文档跑的时候需要订阅,各种不好使,然后就自己基于源码构建了 一个镜像(使用官方的dockerfile,构建出来的太大了1.9G 以及push docker hub 了),然后参考官方文档运行,各种不 好使,结合查看源码进行摸索,终于部分跑起来了,功能尽管很强大,但是有点费事,以下是安装以及碰到的问题解决方 法的记录 环境准备 docker-compose 构建好的镜像以及push dockerhub了 dalongrong/quay docker-compose 文件 version: "3" services: postgres: image: postgres:10 ports: - "5432:5432" environment: - "POSTGRES_PASSWORD:dalong" redis: image: redis ports: - "6379:6379" privileged: true quay-migration: image: dalongrong/quay:v3.1.2 command: migrate env_file: - .env privileged: true ports: - "8443:8443" quay-config: image: dalongrong/quay:v3.1.2

Redhat 6.7 x64升级SSH到OpenSSH_7.4p1文档

让人想犯罪 __ 提交于 2019-12-04 07:03:03
导语 Redhat企业级系统的6.7版自带SSH版本为OpenSSH_5.3p1, 基于审计和安全性需求,建议将其升级到最新的OpenSSH版本,当前官网最新版本为7.4p1. 本文档将详细介绍OpenSSH升级的完整步骤。需要说明的是,升级过程中虽然涉及zlib、openssl和openssh的卸载,但是并不会导致当前的ssh远程连接会话断开,因此是可以将整个升级过程写成自动化脚本以进行自动批量部署的。 步骤 1、准备工作 1.1、下载相关软件包 OpenSSH需要依赖zlib和OpenSSL,因此需要从官网下载三者的源码包。需要注意的是:OpenSSH最新版7.4p1依赖的OpenSSL版本为1.0.2k,而不是其最新版1.1.0e(使用此版会升级失败),ZLIB可以使用最新版1.2.11。redhat6.7自带的zlib版本为1.2.3,也可不进行升级。 三者源码下载地址: http://www.zlib.net/ http://www.openssl.org/ http://www.openssh.org/ 1.2、查看系统当前软件版本 # rpm -q zlib # openssl version # ssh -V 1.3、配置本地yum源 因安装相关工具和编译源码需要先安装部分软件包,因此需要先配置好本地yum源(如有远程yum源更好),配置方法如下: A

How to set CPU load on a Red Hat Linux box?

☆樱花仙子☆ 提交于 2019-12-04 07:02:03
I have a RHEL box that I need to put under a moderate and variable amount of CPU load (50%-75%). What is the best way to go about this? Is there a program that can do this that I am not aware of? I am happy to write some C code to make this happen, I just don't know what system calls will help. This is exactly what you need: http://weather.ou.edu/~apw/projects/stress/ From the homepage: "stress is a simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPL."

How to make Redline RPM Library work with Ant?

♀尐吖头ヾ 提交于 2019-12-04 06:20:42
问题 I use Ant as a build tool, I put this line into my Ant script at the very beginning: <taskdef name="pure-java-rpm" classname="org.redline_rpm.ant.RedlineTask" classpath="lib/ant/redline-1.1.16.jar" /> I call it further: <pure-java-rpm group="Games" name="${project-unix-name}" version="0" destination="${destdir}"> <zipfileset prefix="/usr/share/games/${project-unix-name}" file="${destdir}/${game-jar-filename}"/> <depends name="java" version=">= 1.7"/> </pure-java-rpm> I get the following error

tensorflow deployment on openshift, errors with gunicorn and mod_wsgi

那年仲夏 提交于 2019-12-04 05:32:39
问题 I'm implementing a small app based on this git: gitlab.com/osevg/python-flask-modwsgi All I've changed is the wsgi.py to execute a script that analyzes an uploaded file (the file is uploaded through a separate PHP-based app, sent to this Python app via http post). The script itself is pretty trivial and runs without any issues on my local Windows device (takes 5-6s to run, then send back the results via JSON). I'm working on getting the tool running on Openshift v3 now. import os from flask