Thursday, May 21, 2015

linux кем слушаются порты

rpcinfo -p

вывод примерно такой

[root@host ~]# rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100011    1   udp    678  rquotad
    100011    2   udp    678  rquotad
    100011    1   tcp    681  rquotad
    100011    2   tcp    681  rquotad
    100021    1   udp  32768  nlockmgr
    100021    3   udp  32768  nlockmgr
    100021    4   udp  32768  nlockmgr
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   tcp  33303  nlockmgr
    100021    3   tcp  33303  nlockmgr
    100021    4   tcp  33303  nlockmgr
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100005    1   udp    718  mountd
    100005    1   tcp    721  mountd
    100005    2   udp    718  mountd
    100005    2   tcp    721  mountd
    100005    3   udp    718  mountd
    100005    3   tcp    721  mountd

nginx / apache parse access log

cat /var/log/nginx/access_log | awk '{print $1}' |sort | uniq -c | sort -k 1 -n

Tuesday, May 12, 2015

AH00082: an unknown filter was not added: PHP

Должно быть так
/etc/apache2/apache2.conf

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
А не так
/etc/apache2/mod-available/php5filter.conf
<Files *.php>
       SetOutputFilter PHP
       SetInputFilter PHP
</Files>

Делаем так

#<Files *.php>
#      SetOutputFilter PHP
#       SetInputFilter PHP
#</Files>

grub2-install: error: disk `mduuid/e54081d398c6d57b4d67436f6d032162' not found

After raid 1 disk replacement faced with this issue # grub2-install /dev/sdb Installing for i386-pc platform. grub2-install: error: disk `md...