カテゴリー: LINUX
[fork_child] (0x0020): [RID#152134] pipe (to) failed [24][ファイルを開きすぎです]が出たときの対応
[fork_child] (0x0020): [RID#152134] pipe (to) failed [24][ファイルを開きすぎです]が出たときの対応
linux でkerberos 認証を行っているのだけれども sssd のログにこのようなエラーが出た場合の対処法。
コマンドで見るとこんな感じなので、拡張する。
# ulimit -n
1024
# vi /etc/security/limits.conf
上限は 65536
全ユーザを対象
ソフトリミット、ハードリミット共に同じ値
という事で、以下の設定を追記。
* soft nofile 65536
* hard nofile 65536
* soft nproc 65536
* hard nproc 65536
この場合に必要なのは
* soft nproc 65536
* hard nproc 65536
CentOS7 asterisk インストール
#!/bin/bash
yum -y update
yum install -y dnf-plugins-core
yum install -y wget gcc gcc-c++ make bzip2 patch libedit-devel uuid-devel libuuid-devel libxml2-devel sqlite sqlite-devel nano openssl openssl-devel
yum install -y libxml2 libxml2-devel openssl-devel ncurses-devel sqlite-devel newt-devel libuuid-devel uuid-devel libedit-devel
yum install -y json-c json-c-devel
cd /usr/src/
wget https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-18-current.tar.gz
tar -xzf asterisk-18*
cd asterisk-18.*
contrib/scripts/install_prereq install
./configure –with-jansson-bundled
make menuselect
make
make all
make install
make samples
make config
systemctl start asterisk
systemctl enable asterisk
asterisk -crvvvvvvvvvv
OpenLdapでメールアカウントを作る場合の dovecot の設定 mbox とmail_locationの設定
OpenLdapでメールアカウントを作る場合はhomeディレクトリを作成しない。
じゃあどこにメールを置くの?
メール自身は/var/spool/mail でよいがdovecotのmboxはどうすんの?ということで書いておきます。
まずmbox用フォルダーの作成
mkdir /var/spool/mbox chmod 777 /var/spool/mbox
10-mail.confの編集
mail_location = mbox:/var/spool/mbox/%u:INBOX=/var/spool/mail/%u
これでよし!