頭を使う作業には糖分が必要だ!とチョコとかドーナッツとか食べてるとお腹が膨れて眠たくなるし、体に良くない
お菓子屋でぶどう糖を売っていたので買ってみた
1日に必要なブドウ糖の量:ブドウ糖 ドット ジェーピー
を参考にすると、1時間あたり5gは勝手に消費するらしい
とりすぎると糖尿などの危険性があるので、疲れたら取るようにしてみています
いまのところ、いいかも
頭を使う作業には糖分が必要だ!とチョコとかドーナッツとか食べてるとお腹が膨れて眠たくなるし、体に良くない
お菓子屋でぶどう糖を売っていたので買ってみた
1日に必要なブドウ糖の量:ブドウ糖 ドット ジェーピー
を参考にすると、1時間あたり5gは勝手に消費するらしい
とりすぎると糖尿などの危険性があるので、疲れたら取るようにしてみています
いまのところ、いいかも
phpを5.4から5.6へアップデートした後、こんなエラーが出てました
$ php -v
PHP Warning: PHP Startup: newrelic: Unable to initialize module
Module compiled with module API=20100525
PHP compiled with module API=20131226
These options need to match
in Unknown on line 0
New Relic入れなおして直りました
New Relicの新規インストールのページ通りやりました
Centos 64bitですが、参考まで
$ sudo rpm -Uvh http://yum.newrelic.com/pub/newrelic/el5/x86_64/newrelic-repo-5-3.noarch.rpm
$ sudo yum install newrelic-php5
$ sudo newrelic-install install
Apache再起動
$ sudo /etc/init.d/httpd restart
これで直りました
Centos 6.4 のphpをyumで新しくしてみました
現状は
$ php -v
PHP 5.4.20 (cli) (built: Sep 18 2013 19:55:33)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
$ yum info php
Installed Packages
Name : php
Arch : x86_64
Version : 5.4.20
Release : 1.el6.remi
Size : 9.1 M
Repo : installed
From repo : remi
Summary : PHP scripting language for creating dynamic web sites
URL : http://www.php.net/
License : PHP and Zend and BSD
Description : PHP is an HTML-embedded scripting language. PHP attempts to make it
: easy for developers to write dynamically generated web pages. PHP also
: offers built-in database integration for several commercial and
: non-commercial database management systems, so writing a
: database-enabled webpage with PHP is fairly simple. The most common
: use of PHP coding is probably as a replacement for CGI scripts.
:
: The php package contains the module (often referred to as mod_php)
: which adds support for the PHP language to Apache HTTP Server.
とremiリポジトリから入れてるようです
$ sudo yum upgrade
$ sudo yum update
なんてしても入らないのでremiリポジトリをアップデート
Remi’s RPM repository
からOSにあったリンクを探してきて
$ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
これでアップデートされました
$ yum repolist all
remi Remi's RPM repository for Enterprise Linux 6 - x86_64 disabled
remi-debuginfo Remi's RPM repository for Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-php55 Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - x86_64 disabled
remi-php55-debuginfo Remi's PHP 5.5 RPM repository for Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-php56 Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64 disabled
remi-php56-debuginfo Remi's PHP 5.6 RPM repository for Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-php70 Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64 disabled
remi-php70-debuginfo Remi's PHP 7.0 RPM repository for Enterprise Linux 6 - x86_64 - debuginfo disabled
remi-php70-test Remi's PHP 7.0 test RPM repository for Enterprise Linux 6 - x86_64 disabled
remi-php70-test-debuginfo Remi's PHP 7.0 test RPM repository for Enterprise Linux 6 - x86_64 - debuginfo disabled
とremiリポジトリが増えてます
phpで何が入っているか確認
$ rpm -aq | grep php
php-pecl-apc-3.1.15-0.3.svn329913.el6.remi.x86_64
php-bcmath-5.4.20-1.el6.remi.x86_64
php-xml-5.4.20-1.el6.remi.x86_64
php-pdo-5.4.20-1.el6.remi.x86_64
php-cli-5.4.20-1.el6.remi.x86_64
php-pear-1.9.4-12.el6.remi.1.noarch
php-mbstring-5.4.20-1.el6.remi.x86_64
php-gd-5.4.20-1.el6.remi.x86_64
newrelic-php5-common-5.2.0.141-1.noarch
newrelic-php5-5.2.0.141-1.x86_64
php-common-5.4.20-1.el6.remi.x86_64
php-mysql-5.4.20-1.el6.remi.x86_64
php-pgsql-5.4.20-1.el6.remi.x86_64
php-5.4.20-1.el6.remi.x86_64
強引にアップデート
$ sudo yum –enablerepo=remi,remi-php56 update
$ php -v
PHP 5.6.16 (cli) (built: Nov 26 2015 08:01:30)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
できました
Centos 6.4 でいらないリポジトリを無効にしてみました
リポジトリを確認
$ yum repolist all
設定ファイルを開いて追記
今は使ってないマカレルがあったので参考に
$ sudo vim /etc/yum.repos.d/mackerel.repo
enabled=0
これで、yum repolist allでみるとdisabledになりました