centos6

java.io.IOException when running Spring Boot jar on Centos 6.4 / Open JDK 1.7.0

巧了我就是萌 提交于 2020-01-05 12:12:31
问题 We have a spring boot (0.5.0.M7) generated jar file. When we "mvn clean package" and then run ("java -jar target/my-app-camel-0.1.0.jar") on Windows 7 (64 bit with Oracle 64-bit Java SE JVM, 1.7.0_51-b13) it all works as expected: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v0.5.0.M7) 10:47:25.324 [main]

java.io.IOException when running Spring Boot jar on Centos 6.4 / Open JDK 1.7.0

依然范特西╮ 提交于 2020-01-05 12:10:30
问题 We have a spring boot (0.5.0.M7) generated jar file. When we "mvn clean package" and then run ("java -jar target/my-app-camel-0.1.0.jar") on Windows 7 (64 bit with Oracle 64-bit Java SE JVM, 1.7.0_51-b13) it all works as expected: . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v0.5.0.M7) 10:47:25.324 [main]

How to update PHP in Cent OS 6.8?

扶醉桌前 提交于 2020-01-05 06:52:50
问题 I try to update PHP 5.5 to up using command: sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Retrieving https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm warning: /var/tmp/rpm-tmp.4xrPQL: Header V3 RSA/SHA256 Signature, key ID 352c64e5: NOKEY error: Failed dependencies: epel-release = 6 is needed by (installed) remi-release-6.8-1.el6.remi.noarch epel-release = 6 is needed by (installed) ius-release-1.0-14.ius.centos6.noarch How can I

sed: add exclude=postgres* under base and updates section

為{幸葍}努か 提交于 2020-01-05 04:41:12
问题 /etc/yum.repos.d/CentOS-Base.repo file # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= does not work for you, as a fall back you can try the # remarked out baseurl= line instead. # # [base] name=CentOS-$releasever - Base mirrorlist

Name or service not known

纵饮孤独 提交于 2020-01-03 13:39:12
问题 I have been trying to get the ipaddress of the person who logged into the machine using the below code but I get a error. >>> import socket >>> socket.gethostbyname_ex(socket.gethostname()) Traceback (most recent call last): File "<stdin>", line 1, in <module> socket.gaierror: [Errno -2] Name or service not known The same code works in other linux box. Not sure I fix it. 回答1: Error has occurred just because of not setting up hostname properly. Set the hostname at three different places, which

Creating subdomain in virtualhost in apache 2.0 on CentOS 6.4

两盒软妹~` 提交于 2020-01-02 11:46:00
问题 I need to create subdomains on a web server with apache 2.0 , CentOS 6.4, PageSpeed ​​+ Apc. I have no DNS server. I need to use VirtualHost. My code: NameVirtualHost xx.xx.xx.xx <VirtualHost xx.xx.xx.xx> ServerName www.sub.domain.com ServerAlias sub.domain.com DocumentRoot /var/www/html/sub </VirtualHost> <VirtualHost xx.xx.xx.xx> ServerName www.domain.com ServerAlias domain.com DocumentRoot /var/www/html </VirtualHost> I have put this code in: /etc/httpd/conf.d/somename.conf and it does not

Creating subdomain in virtualhost in apache 2.0 on CentOS 6.4

独自空忆成欢 提交于 2020-01-02 11:44:47
问题 I need to create subdomains on a web server with apache 2.0 , CentOS 6.4, PageSpeed ​​+ Apc. I have no DNS server. I need to use VirtualHost. My code: NameVirtualHost xx.xx.xx.xx <VirtualHost xx.xx.xx.xx> ServerName www.sub.domain.com ServerAlias sub.domain.com DocumentRoot /var/www/html/sub </VirtualHost> <VirtualHost xx.xx.xx.xx> ServerName www.domain.com ServerAlias domain.com DocumentRoot /var/www/html </VirtualHost> I have put this code in: /etc/httpd/conf.d/somename.conf and it does not

PID file exists, but process is not running

落爺英雄遲暮 提交于 2020-01-02 05:46:18
问题 I'm working in centos6. I have installed tomcat6. At the first all works fine. But after restarting the server tomcat6 did not work properly. When I execute this command line:" service tomcat6 status " I get: " PID file exists, but process is not running [ÉCHOUÉ] " I checked to the log file "catalina.out" and I get this error: GRAVE: StandardServer.await: create[8005]: java.net.BindException: Cannot assign requested address at java.net.PlainSocketImpl.socketBind(Native Method) at java.net

core dump filename gets thread name instead of executable name with core_pattern %e.%p.core

拜拜、爱过 提交于 2020-01-01 09:45:22
问题 I recently started setting some thread names within my application by using pthread_setname_np(). After doing this, if a crash occurs within one of the named threads, the core dump filename is getting the thread name instead of executable name with core_pattern %e.%p.core According to the core man page, the %e flag in the core_pattern is supposed to get expanded to the executable name. It doesn't say anything about the thread name. I want the executable name and not the thread name, because I

gdb can not find debug info on Centos

此生再无相见时 提交于 2019-12-31 05:03:07
问题 I am trying to figure out a very strange issue. I have CentOS 6.5 system with gdb: GNU gdb (GDB) Red Hat Enterprise Linux (7.2-75.el6) and gcc: gcc (GCC) 4.8.2 20131212 (Red Hat 4.8.2-8) I have this file: #include<stdio.h> int main() { printf("OK!"); return 0; } which I compile with: gcc -o a a.c -g -O0 The file seems to be fine: $ file a a: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped But when I try to debug it