centos6

How to reduce TTFB (Time to First byte) of my magento application?

↘锁芯ラ 提交于 2019-12-04 21:06:28
Please help me reduce TTFB of my website (magento) which is running on VPS Dedicated Hosting with CentOS release 6.6 (Final). Current Time To First Byte is: 19.427 seconds Just caches don't improve performance, they reduce hardware utilization for repeated requests. While implementing the Will Farrell's other suggestions, you need to identify those parts of Magento code that are slow. For that, you will need to enable Magento Profiler – the built in Magento tool that lets you see what Magento is doing and on what it spends most of the page load time. here is the details method how to enable

Netty ObjectDecoder throws java.io.StreamCorruptedException: unexpected end of block data

感情迁移 提交于 2019-12-04 20:11:57
I've an unusual problem that's causing me to tear my hair out. I have a Netty Client/Server setup. The server sends a command object to the client. The client then sends each of the binary commands found in the command object to a device attached to it's local serial port. The answers to each command ( a binary string) is stored within the command object and when all the commands have been executed, the command object is returned to the server. So I'm using the ObjectEncoder and ObjectDecoder in both my client and Server pipelines. I have one specific, repeatable case where the server throws

Invalid command WSGIDaemonProcess Deploy Django application on CentOS 6.7

六眼飞鱼酱① 提交于 2019-12-04 16:05:53
问题 I am using Django 1.8 on CentOS 6.7 with Apache Server version: Apache/2.2.15 (Unix). I have followed the steps in How To Serve Django Applications with Apache and mod_wsgi on CentOS 7. But at last step when I start the Apache server with command : service httpd start instead of systemctl start httpd beacuse I have Centos 6.7 not CentOS 7 according to tutorial. It is giving the following error: Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/django.conf: Invalid command

PHP 5.3.8, JSON & CentOS 6

荒凉一梦 提交于 2019-12-04 15:39:47
We're running CentOS 6 and PHP 5.3.8 (as an apache module) which should have JSON as part of it's core (I'm told). Looking at # php -i on the command line I can see under Configure Command '--enable-json=shared' ... great! However, looking at php_info() on a web page Configure Command shows '--disable-json' . No problem I thought, I'll just install it using pecl: # yum update php # yum install php-pear # yum install gcc # pecl install json # service httpd restart Success, that aught to do it I thought. However php -m shows: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64

Unable to install chromium in my centOS

此生再无相见时 提交于 2019-12-04 13:13:56
i am trying to install chromium in centOS 6.i run the following commands as root user. cd /etc/yum.repos.d/ wget http://repos.fedorapeople.org/repos/spot/chromium/fedora-chromium-stable.repo . but when i run command yum install chromium its giving me error Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: mirrors.vonline.vn * extras: mirrors.digipower.vn * updates: mirror.vietoss.com http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-6/x86_64/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned

git-http-backend with AuthzUnixGroup not working properly

天涯浪子 提交于 2019-12-04 11:17:08
I am trying to set up a git repository over my Apache 2.2 on a CentOS 6 box, with git installed. I have tried following many different directions, and I am at a loss. My current situation comprises of being able to clone normally, but being completely unable to push. It seems as though I am incapable of getting the authentication bit to work properly, as I can normally perform the push while setting http.receivepack to true . I have installed AuthzUnixGroup as well as mod_authz_external . I went to /var/www/git and created a repo named my-repo.git and did a git init --bare inside it. Then I

Cannot change the maximum open files per process with sysctl

家住魔仙堡 提交于 2019-12-04 08:27:38
My actual limit is 1024 : $ ulimit -a core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 95979 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1024 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) 10240 cpu time (seconds, -t) unlimited max user processes (-u) 1024 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited I tried: sysctl -w fs.file-max=100000 and appending to /etc

如何在Centos 6 X86_64安装RHEL EPEL知识库?

三世轮回 提交于 2019-12-04 06:15:41
前言: 163的源速度快( http://my.oschina.net/chocoball/blog/204249 ) ,但有的包不一定有。比如,没有比如。EPEL源用过之后都说很爽! 一、什么是EPEL 如果既想获得 RHEL 的高质量、高性能、高可靠性,又需要方便易用(关键是免费)的软件包更新功能,那么 Fedora Project 推出的 EPEL(Extra Packages for Enterprise Linux)正好适合你。EPEL(http://fedoraproject.org/wiki/EPEL) 是由 Fedora 社区打造,为 RHEL 及衍生发行版如 CentOS、Scientific Linux 等提供高质量软件包的项目。 二、EPEL源使用感受 1、不用去换原来yum源,安装后会产生新repo 2、epel会有很多源地址,如果一个下不到,会去另外一个下 三、 CentOS 6.x X86_64 安装EPEL 源 第一步下载需要的RPM文件 wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo rpm -Uvh

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

为君一笑 提交于 2019-12-04 05:29:42
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 have other automated scripts (not maintained by me) that depend on the core filenames beginning with

How to install docker 1.9+ in CentOS 6.5?

China☆狼群 提交于 2019-12-04 02:48:39
I'm now deploying on CentOS 6.5, and I'm now starting to use docker. So, I follow the instructions on: https://docs.docker.com/engine/installation/centos/ No matter which method I follow to install, I get version of 1.7.1 . [root@VM_72_235_centos ~]# docker version Client version: 1.7.1 Client API version: 1.19 Go version (client): go1.4.2 Git commit (client): 786b29d/1.7.1 OS/Arch (client): linux/amd64 Server version: 1.7.1 Server API version: 1.19 Go version (server): go1.4.2 Git commit (server): 786b29d/1.7.1 OS/Arch (server): linux/amd64 But now I run the command in the documentation: