カテゴリー: Linux

Linux

UbuntuにphpMyAdminを設定(LAMP導入済み) Apache2.4

  既存のサーバにphpMyAdminを入れる機会がありました🐱 条件 既存のApacheが動いている状態から PHP5.6   # cd /var/www/html # wget https://files.phpmyadmin.net/phpMyAdmin/4.7.7/phpMyAdmin-4.7.7-all-languages.zip # unzip phpMyAdmin …

チューニング, Linux

Nginx+PHP-FPMチューニング worker_connections are not enough while connecting to upstream

  環境 Ubuntu AWS EC2   worker_connections are not enough while connecting to upstream JMeterで負荷をかけたら、エラーがでた。確認したところほぼデフォルトのサーバであった。 チューニングしていく   接続ソケット数を増やす   # sysctl net.core.soma …

Linux

【工事中】MongoDB まとめ

    どういう用途に向いているの?   操作データログ 限定的なフィールドを検索するコンテンツ ソーシャルゲーム   特徴   NoSQLでKVS SQLではなく、JavaScriptでデータを取得する スケールが容易 ・シャーディング ・レプリカ 差分バックアップはない インデックスはダンプされない、リストア時に再構築される   思想 …

AWS, Linux

CentOS7 Memcached+PHP AWS ElastiCache運用に備える

  AWS ElastiCache (Memcached)を触るので 生のMemcachedを触ってみます。 チューニングパラメータやバッドノウハウや癖を知りたいのです。   Memcachedインストール   # yum -y install memcached   # memcached -h | head -n1 memcached 1.4.15 &n …

Linux

Nginx PHP-FPM RDSのタイムアウトエラーなど対応

  PHP-FPM プロセス数変更 staticにしちゃって良い # vi /etc/php/7.2/fpm/pool.d/www.conf ;pm = dynamic pm = static ←●追加 ; The number of child processes to be created when pm is set to ‘static’ and the ; maximum nu …