centos7

Centos7 docker-py doesn't seem to be installed

一世执手 提交于 2019-12-04 01:38:53
I installed Centos7 minimal and then: ansible, docker, pip and using pip I installed docker-py. Versions: - Docker version 1.6.0, build 8aae715/1.6.0 - ansible 1.9.1 - docker_py-1.2.2 Trying to run a playbook, for example - name: redis container docker: name: myredis image: redis state: started i get msg: docker-py doesn't seem to be installed, but is required for the Ansible Docker module. I can't see the problem. Is it the CentOS, docker and ansible version? PS: I disabled the firewalld and SELinux Any ideas? Thanks I found a couple problems with the docker-py module. After I worked through

CentOS 7 64bit Minimal安装后的初步10项优化和配置

让人想犯罪 __ 提交于 2019-12-03 15:28:33
CentOS官方于2014年7月7日发布64位CentOS 7.0.1406开始,不知不觉已快半年了。也已经有越来越多的软件开始支持CentOS7了。ITGeeker也尝试将越来越多的服务架构于其之上。 CentOS 7是一个大版本更新,应该有不少提升。连服务的启动停止命令也有了很大的变化。 CentOS 6及之前: service httpd restart CentOS 7: systemctl start httpd.service 1. 更新系统并安装必备的组件 yum upgrade or yum update yum install wget telnet perl perl-devel net-tools kernel-devel yum groupinstall "Development tools" -y 安装这些之后会大大方便今后安装其他应用是碰到的依赖包问题。其中net-tools是为了提供dig, nslookup, ipconfig等命令,方便配置CentOS 7初始化网络环境。如果不安装这个,在CentOS 7中,可以使用ip addr命令来代替ipconfig进行当前ip地址查询。 2. 添加源(repository)REMI & EPEL yum安装时,要想安装比较新的版本软件,可以试试这两个源。都有一些国内镜像,我添加的EPEL是阿里云镜像的。

How to change docker daemon root directory in CentOS7

雨燕双飞 提交于 2019-12-03 14:35:10
I am running docker in CentOS7. I'd like to change my basic directory from /var/lib/docker to /data/docker . I found this guide from official site, but do not know how to apply this to my case. I just make new daemon.json in /etc/docker/ . After that when I am trying to run daemon occurs an error. follow is systemctl status -l docker.service . ● docker.service - Docker Application Container Engine Loaded: loaded (/usr/lib/systemd/system/docker.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2017-04-27 15:07:41 KST; 47s ago Docs: https://docs.docker.com

Combine JPG's into one PDF with PHP

谁说胖子不能爱 提交于 2019-12-03 13:44:50
问题 I'm trying to take a series of JPG's and combine them into one PDF file with each JPG being it's own page. I'm guessing ImageMagick is the best way to do this, however I can't seem to figure out how to combine the files. I see the combineImages method here : http://php.net/manual/en/imagick.combineimages.php But cannot find any examples. I'm new to imagemagick so I'm still trying to figure out the syntax. Can ImageMagick do what I'm asking? And if so can someone write up a quick example?

Starting Jenkins in Docker Container

好久不见. 提交于 2019-12-03 13:31:26
I want to run Jenkins in a Docker Container on Centos7. I saw the official documentation of Jenkins: First, pull the official jenkins image from Docker repository. docker pull jenkins Next, run a container using this image and map data directory from the container to the host; e.g in the example below /var/jenkins_home from the container is mapped to jenkins/ directory from the current path on the host. Jenkins 8080 port is also exposed to the host as 49001. docker run -d -p 49001:8080 -v $PWD/jenkins:/var/jenkins_home -t jenkins But when I try to run the docker container I get the following

django can't find new sqlite version? (SQLite 3.8.3 or later is required (found 3.7.17))

亡梦爱人 提交于 2019-12-03 12:43:01
问题 I've cloned a django project to a Centos 7 vps and I'm trying to run it now, but I get this error when trying to migrate : $ python manage.py migrate django.core.exceptions.ImproperlyConfigured: SQLite 3.8.3 or later is required (found 3.7.17). When I checked the version for sqlite, it was 3.7.17, so I downloaded the newest version from sqlite website and replaced it with the old one, and now when I version it, it gives: $ sqlite3 --version 3.27.2 2019-02-25 16:06:06

How to enable mod_rewrite on Apache 2.4?

こ雲淡風輕ζ 提交于 2019-12-03 12:16:07
I'm using Wordpress and wanted to enable pretty urls feature, but they don't work, i'm thinking that it's because of mod_rewrite, but i don't know how to enable it on Apache 2.4 under CentOS 7... I've already try this: grep -i LoadModule /etc/httpd/conf/httpd.conf | grep rewrite but nothing... Also would like to know it loading all Apache modules has any bad consequence or is it bad practice? Jonathan Solorzano I found the way to know if a module is loaded or not, here's to command to list the modules enabled: apachectl -M | sort It will list all enabled modules alphabetically. Wordpress has

Php has its own /tmp in /tmp/systemd-private-nABCDE/tmp when accessed through nginx

◇◆丶佛笑我妖孽 提交于 2019-12-03 11:03:44
问题 I found strange behaviour concerning php and /tmp folder. Php uses another folder when it works with /tmp . Php 5.6.7, nginx, php-fpm. I execute the same script in two ways: via browser and via shell. But when it is launched via browser, file is not in real /tmp folder: <?php $name = date("His"); echo "File /tmp/$name.txt\n"; shell_exec('echo "123" > /tmp/'.$name.'.txt'); var_dump(file_exists('/tmp/'.$name.'.txt')); var_dump(shell_exec('cat /etc/*release | tail -n 1')); php -f script.php File

Composer installed, but get /usr/bin/env: php: No such file or directory

半城伤御伤魂 提交于 2019-12-03 07:12:14
问题 On CentOS 7, I installed PHP 7.1. Then I installed composer with: cd /tmp curl -sS https://getcomposer.org/installer | php71 --> used php71 instead of php, php didn't work mv composer.phar /usr/local/bin/composer Then, when using composer , I get: /usr/bin/env: php: No such file or directory When using sudo composer , I get: sudo: composer: command not found 回答1: As @alexhowansky suggested, I ran the following command: sudo ln -s /usr/bin/php71 /usr/bin/php Now the composer command works.

How do I make a keyboard shortcut for Terminal in CentOS 7

妖精的绣舞 提交于 2019-12-03 05:32:12
问题 Just installed CentOS 7 on my laptop. This new version of CentOS is pretty different from older ones, and I cannot make a keyboard shortcut for Terminal in older ways. Dose anybody know how ? 回答1: Go to Settings >>> keyboard >>> Shortcuts tab >>> Custom Shortcuts >>> click "+" Name: Terminal Shortcut Command: gnome-terminal Now a new shortcut added with status "disabled". Click on "disabled" word and assign your shortcut. For me, I prefer Ctrl + Alt + t to run Terminal 回答2: On Gnome 3 GUI you