管理人

linux command リナックスコマンド(備忘録)

php_browscap.iniのエラーをなくす(php7系)

php -V この際にsyntax errorが出る場合。 PHP:  syntax error, unexpected $end, expecting ']' in /etc/php.d/full_php_browscap.i...
linux command リナックスコマンド(備忘録)

nginxでのSSL化の際の注意点

■80ポートから443ポートへのリターンパターン server { listen 80; server_name example.com; return 301 }
SSL

SSL対応しました^^

本日より、当サイトもSSL対応いたしました。 apache nginx 問わず対応し、80 >> 443 へのリダイレクトや、wwwなしへの統一なども、もちろん対応済みです。 全て ...
linux command リナックスコマンド(備忘録)

zabbix をapacheからnginx に変更した際の注意

cd /etc/zabbix ls -ld web chown -R nginx.nginx web IPは下記ディレクトリで運用 cd /var/www/html ln -s /usr/share/zabbix . vim /etc/...
wordpress

特殊文字が自動変換されるのを回避する

利用しているテーマのfunctions.phpに追記 <?php の下に下記を追記
linux command リナックスコマンド(備忘録)

php-fpm のプロセス数

ps aux | grep php-fpm | grep -v "\(root\|grep\)" | wc -l
linux command リナックスコマンド(備忘録)

よく使うnetstat

netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n 不審IPの調査に
linux command リナックスコマンド(備忘録)

wgetで再帰的に特定のファイルをDLする方法

下記は「特定のURL」からスタートし、再帰的に「特定のドメイン」ドメイン内のl_s.jpgのみをDLしてくる。 wget -r -l 5000 -H -A l_s.jpg -D 「特定のドメイン」 「特定のURL」 wget -...
linux command リナックスコマンド(備忘録)

ヒストリーに日時を表示させるコマンド

これを打った以降しか出てこない HISTTIMEFORMAT='%y/%m/%d %H:%M:%S ';
linux command リナックスコマンド(備忘録)

特定のファイル名を検索した結果をファイルに出力する

find -name .htaccess -fprint htaccess.txt
タイトルとURLをコピーしました