centos7

CentOS7安装Mysql5.7

自古美人都是妖i 提交于 2019-12-06 07:16:36
1. 查看是否有mariadb,有就删除掉,请自行了解mariadb。 [root@VM_195_230_centos upload]# rpm -qa|grep mariadb mariadb-libs-5.5.50-1.el7_2.x86_64 [root@VM_195_230_centos upload]# rpm -e mariadb-libs-5.5.50-1.el7_2.x86_64 --nodeps [root@VM_195_230_centos upload]# rpm -qa|grep mariadb 2. 下载mysql5.7,会花费一定时间。 [root@VM_195_230_centos upload]# wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar ...... 2017-06-13 15:35:16 (1.08 MB/s) - 'mysql-5.7.16-1.el7.x86_64.rpm-bundle.tar' saved [569978880/569978880] 3. 检看下载好的文件,并解压 [root@VM_195_230_centos upload]# ls mysql-5.7.16-1.el7.x86_64

CentOS7 Nginx+Redis+Tomcat集群实现session保持和共享

删除回忆录丶 提交于 2019-12-06 05:38:52
一、环境相关 操作系统:CentOS7 软件版本:nginx/1.9.15 Apache Tomcat/7.0.69 redis 3.20 网络环境:Nginx 192.168.5.250 Tomat1:192.168.5.251 Tomcat2:192.168.5.252 Redis:192.168.5.253 相关软件网盘地址: http://pan.baidu.com/s/1skBIlXV 二、相关软件配置 1、Nignx编译与添加自启脚本: http://my.oschina.net/huangweibin/blog/665239 Nginx 192.168.5.250 [root@nginx ~]# vim /etc/nginx/nginx.conf http上下文 upstream tomcat { server 192.168.5.251:8080; server 192.168.5.252:8080; } server上下文 location / { proxy_pass tomcat; } 2、Reids编译与添加自启脚本: http://my.oschina.net/huangweibin/blog/671408 3、Tomcat编译与添加自启脚本:CentOS7 编译Tomcat并添加自启动脚本 (注意:本文Tomcat要求版本为tomcat-7.x)

Centos 7 - where is jfx library for openjdk8?

安稳与你 提交于 2019-12-05 22:26:47
I have centos 7.1. And I installed openjdk8 and openjdk-devel8. However, when I tried to compile in netbeans my jfx application I get package javafx.* does not exist. After some investigation I see that there is no jfxrt.jar in jdk. Besides [root@localhost ext]# yum provides jfxrt.jar Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: mirror.astpage.ru * epel: epel.besthosting.ua * extras: mirror.astpage.ru * nux-dextop: mirror.li.nux.ro * updates: mirror.astpage.ru adobe-linux-x86_64/filelists | 619 B 00:00:00 base/7/x86_64/filelists_db | 6.0 MB 00:00

sudo yum install installs only JRE not JDK - Centos

梦想与她 提交于 2019-12-05 20:27:09
问题 I tried installing open-jdk in Centos using the below command, sudo yum install java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64 It installs only the JRE by not JDK. After installation, The folder /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-3.b12.el7_3.x86_64 only jre javac is not recognized. 回答1: After going through this link, found out that sudo yum install java-1.8.0-openjdk installs only JRE. Executed sudo yum install java-1.8.0-openjdk-devel to install JDK. 来源: https://stackoverflow.com

Tcsh script does not exit

岁酱吖の 提交于 2019-12-05 12:36:53
I am running CentOS 7, and I am having problems with tcsh scripts. I have a simple script called quittest. #!/bin/tcsh echo "Simple Test" exit 0 When I run quittest from the terminal, I get "Simple Test" And it does not exit. I can Control+C to exit. I check on the status of this with: ps aux and it shows quittest with a state of S+ (foreground interruptible sleep). If I change this script to bash, or sh, it runs fine, and exits as expected. I cannot just switch to another shell, because my users have very complex scripts written with tcsh. We are replacing OpenSuSE 12.3 with CentOS 7. Tcsh

Centos7 with private network lost fixed IP

青春壹個敷衍的年華 提交于 2019-12-05 09:24:59
I've a network issue with a centos7 vagrant box. When I setup a private network, with fixed IP, this one is well binding first, but get lost after some seconds/minutes. vagrant up ==> default: Forcing shutdown of VM... ==> default: Destroying VM and associated drives... ==> default: Running cleanup tasks for 'shell' provisioner... Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'sfeirbenelux/centos7'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'sfeirbenelux/centos7' is up to date... ==> default: Setting the

Centos 7 environment variables for Postgres service

那年仲夏 提交于 2019-12-05 08:54:36
Recently I had the problem of starting a postgresql service with custom PGDATA path. It tried to look in the default data directory (/var/lib/pgsql/9.3/data/) which was not initialized and therefore triggered these errors. It appears the problem is that the service starter on Centos 7 strips all the environment variables, including PGDATA. Interesting thread on the issue Is there a way to configure service postgresql-9.3 start to use custom environment variables? Are there configuration files for services where these variables have to be defined? Thank you in advance! Thanks for the above

scipy.misc.imshow RuntimeError('Could not execute image view')

梦想的初衷 提交于 2019-12-05 07:55:06
I am testing scipy.misc.imshow and I got RuntimeError: Could not execute image viewer . I am using Python3.4 and running it on CentOS 7. import scipy.misc img = scipy.misc.imread('Data/cat.jpg') assert len(img.shape) == 3 img_resized = scipy.misc.imresize(img, (224, 224)) img_answer = (img_resized/255.0).astype('float32') scipy.misc.imshow(img_answer) And I got an error: sh: see: command not found Traceback (most recent call last): File "/usr/local/pycharm/helpers/pydev/pydev_run_in_console.py", line 71, in <module> globals = run_file(file, None, None) File "/usr/local/pycharm/helpers/pydev

Error while loading shared libraries: /usr/local/lib64/libssl.so.1.1

别说谁变了你拦得住时间么 提交于 2019-12-05 04:51:25
I’m trying to compile openssl-1.1.0e on Centos 7 (7.3.1611) but after i successfully compiled everything without any warning, i get an error when i’m trying any openssl command [mdm@dev openssl-1.1.0e]$ openssl version openssl: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory Is it a bug or my mistake? Here below some info about my system/configuration Configure: [mdm@dev openssl-1.1.0e]$ ./Configure linux-x86_64 --prefix=/usr/local --openssldir=/usr/local Make/Make test: ... All tests successful. Files=91, Tests=486, 44 wallclock

Starting Jenkins in Docker Container

a 夏天 提交于 2019-12-04 21:50:37
问题 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