centos6

centos6中安装nginx1.9.3

假装没事ソ 提交于 2020-03-03 19:02:52
安装说明 系统环境:CentOS-6.3 软件:nginx-1.9.3.tar.gz 安装方式:源码编译安装 安装位置:/usr/local/nginx 下载地址:http://nginx.org/en/download.html 安装依赖 yum install gcc-c++ yum -y install zlib zlib-devel openssl openssl--devel pcre pcre-devel 下载nginx-1.9.3.tar.gz wget http://nginx.org/download/nginx-1.9.3.tar.gz 安装 find -name nginx yum remove nginx cd /usr/local/src tar -zxvf nginx-1.9.3.tar.gz -C .. cd /usr/local/nginx-1.9.3 ./configure --prefix=/usr/local/nginx make make install 配置防火墙 vi /etc/sysconfig/iptables #添加配置 -A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT 重启防火墙 service iptables restart 启动与测试 /usr

Change owner of a currently running process

左心房为你撑大大i 提交于 2020-02-28 06:45:30
问题 I have a process that is currently running with pid , $PID , and owned by the user foo which is not root . I want to transfer the ownership of this process to another user bar which is also not root . Is there a shell command that changes the owner of a process? I'm thinking of a chown but for processes that looks something like. chownproc [option] PID This question and this question are similar, but not quite what I'm looking for and chown man pages doesn't say anything about processes, only

Make SSL faster on Linux CentOS with Apache 2.4 OpenSSL 1.0

北慕城南 提交于 2020-01-24 04:21:04
问题 colleagues! Well, I am with a huge problem with the speed of SSL Authentication. Since I move my website to SSL, the GoogleBot reduce the indexing of my website, because the SSL Negotiation is with below value I got with WebPageTest.org: URL: https://www.musiconline.com.br/jorge-e-mateus/alcapao/ Host: www.musiconline.com.br Error/Status Code: 200 Client Port: 0 Start Offset: 0.735 s DNS Lookup: 34 ms Initial Connection: 170 ms SSL Negotiation: 531 ms Time to First Byte: 311 ms Content

FIPS integrity verification test failed when iniating SSH session

爷,独闯天下 提交于 2020-01-14 09:30:21
问题 I recently enabled the FIPS module under CentOS 6 (minimum install). Module is confirmed working: cat /proc/sys/crypto/fips_enabled yields 1 openssl md5 somefile (fails) and openssl sha1 somefile (succeeds). openssl version yields OpenSSL 1.0.1e-fips 11 Feb 2013 When I attempt to ssh into a box I connect to daily, I now see a notice stating: FIPS integrity verification test failed The session continues and I am able to connect to the remote server. Is the connection still secure? 回答1: The

Java not found by Elasticsearch on Centos 6.6, all path variables are set and working

两盒软妹~` 提交于 2020-01-13 03:52:05
问题 I recently spun up a vagrant server and wanted to get Elasticsearch going on it. So, I installed Oracle Java and ES on a "chef/Centos-6.6" vagrant cloud VM. I set my Java path using a shell script in "etc/profile.d". Here is my provisioning script: #!/usr/bin/env bash yum -y update wget -O /opt/jdk-7u67-linux-x64.tar.gz --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub

Upgrading to G++ 4.8 - exception_ptr.h Does not support exception propagation

半世苍凉 提交于 2020-01-11 10:36:21
问题 I'm trying to recompile a huge legacy app with g++ 4.8 in order debug a glibc detected memory corruption problem (using AddressSanitizer). Previously we used g++ 4.4.7. However, compilation fails with: /opt/rh/devtoolset-2/root/usr/include/c++/4.8.2/bits/exception_ptr.h:40:4: error: #error This platform does not support exception propagation. while compiling a custom exception handler (I guess). The custom exception handler uses exception_ptr in only one place: void reportOtherException(void)

Setting default timezone does not work despite timezone being valid

那年仲夏 提交于 2020-01-09 10:50:11
问题 I'm geting when I just do phpinfo() Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /myadmin/i.php on line 8 here is i.php : <?php //echo date_default_timezone_get(); date_default

Setting default timezone does not work despite timezone being valid

為{幸葍}努か 提交于 2020-01-09 10:49:16
问题 I'm geting when I just do phpinfo() Warning: phpinfo(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /myadmin/i.php on line 8 here is i.php : <?php //echo date_default_timezone_get(); date_default

MongoDB PHP driver can't installed Centos 6 cloud server

无人久伴 提交于 2020-01-07 03:24:07
问题 I have installed MongoDB service in my Centos 6 cloud server. Now i need to install in my server php-pecl-mongo-1.2.10-1.el6.remi.x86_64.rpm... but it gives "packages not found". Can anyone fix this problem? My php version is PHP 5.3.3. I am using putty for configuring Centos 6 server. I have admin privilege to configure php.ini. 回答1: You could: try RPM installing php-pecl-mongo without a specific version point to a specific RPM url for installation, eg. using rpmfind.net => php-pecl-mongo

pgagent on centos 64bit

为君一笑 提交于 2020-01-06 14:53:23
问题 I am trying to install pgAgent for two straight day on a centOS 6.2 64bit. I have been trying to compile it from source without success because I could not manage to compile wxWidgets. I have been trying to use a precompiled version but was unsuccessful because of missing libraries : linux-gate.so.1 => (0x00f6c000) libssl.so.0 => not found libcrypto.so.0 => not found libcrypt.so.1 => /lib/libcrypt.so.1 (0x00a84000) libz.so.1 => not found libdl.so.2 => /lib/libdl.so.2 (0x0063f000) libstdc++.so