**文書の過去の版を表示しています。**
sudoパスワードなしに変更
CentOS仮想サーバにユーザ名「yoshitake」でログインしているとする。
sudo sed -i 's/^%wheel\tALL=(ALL)\tALL/%wheel\tALL=(ALL)\tNOPASSWD: ALL/' /etc/sudoers #パスワードはyoshitake
zabbixへの登録
sudo su - mkdir /opt echo ' m50v251n3:/opt /opt nfs exec,dev,suid,rw,bg,hard,intr m50v251n3:/home /home nfs exec,dev,suid,rw,bg,hard,intr ' >> /etc/fstab mount -a
いったんサーバからexitして、再度sshで接続する。(マウントした/homeを開くため)
sudo yum localinstall -y ~/download/zabbix-agent-3.2.4-2.el7.x86_64.rpm sudo sed -i 's/Server=127.0.0.1/Server=192.168.251.202/; s/ServerActive=127.0.0.1/ServerActive=192.168.251.202/' /etc/zabbix/zabbix_agentd.conf echo " Timeout=30 UserParameter=hdd.rmbyte[*],iostat -mdx 1 2 | grep \$1 | awk '{print \$\$6}'|tail -n 1 UserParameter=hdd.wmbyte[*],iostat -mdx 1 2 | grep \$1 | awk '{print \$\$7}'|tail -n 1 UserParameter=toppro,top -b -n 1 | sed -e \"1,6d\" | head -6|awk '{print \$2\" \"\$9\" \"\$10\" \"\$12}' " |sudo tee -a /etc/zabbix/zabbix_agentd.conf sudo systemctl start zabbix-agent sudo systemctl enable zabbix-agent
SE Linux無効化設定
sudo setenforce 0 sudo sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
Firewall無効化設定
sudo systemctl stop firewalld.service sudo systemctl disable firewalld.service
Grid Engineインストール
DNSサーバ(192.168.251.201)にまだ新規サーバを登録していないなら、先にそちらを行っておく。
ssh -l root m50v251n3 source /opt/sge/default/common/settings.sh qconf -as (新しいサーバの名前) qconf -ah (新しいサーバの名前) exit sudo yum install -y epel-release sudo yum install -y munge cd /opt/sge sudo ./install_execd # 質問はすべてEnterで良い # qconf -rattr exechost complex_values mem_req=`free -g|grep "^Mem:"|awk '{print $2}'`G `hostname`