rsync server 配置
安装 # yum install rsync -y 配置 很简单 , 就三个配置文件 mkdir /etc/rsyncd touch /etc/rsyncd/rsyncd.conf ln -s /etc/rsyncd/rsyncd.conf /etc/rsyncd.conf 1. /etc/syncd/rsync.conf # Minimal configuration...
View Articlenginx 虚拟主机 + simple password 认证 on ubuntu
ubuntu 上nginx 虚拟主机需要创建在 site-enabled 下面 root@ubt01:/etc/nginx/sites-enabled# cat /etc/nginx/sites-enabled/andysite log_format andy '$remote_addr - $remote_user [$time_local] '...
View Articleelastic search marvel monitoring and ripple restart
I use ubuntu server. CentOS should be very similar. on monitoring node aa-monitoring 1. install elastic search 1.6 wget -qO - https://packages.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add...
View Articlebuild linux LVM using stripe
pvcreate /dev/xvd{b,c} vgcreate datavg /dev/xvd{b,c} lvcreate -i 2 -n datalv -l 100%FREE datavg mkfs.ext4 -m0 /dev/mapper/datavg-datalv e2label /dev/mapper/datavg-datalv data root@es-1:~# lvs...
View ArticleRun a command under a certain user
If you need to manually run mongod using mongodb user, you can use sudo -u mongodb ... su - mongodb -c will not work because mongodb user doesn't have a shell. root@ubt02:~# su - mongodb -c id No...
View Articlessh port forwarding
今天在AWS 装了 elasticsearch, 需要访问 kopf 的plugin 在我的macbook 做了 ssh tunnel $ ssh -L 9600:localhost:9200 ahan@es_server_ip 靠 ,结果不行, 原来都好使啊 。 curl localhost:9600/_cat/health?V curl: (52) Empty reply from...
View Articlesftp openssh chroot 配置 ubuntu
1. create user hana useradd hana -d /home/hana -m 2. edit ssh_config file Match user hana # The following two directives force this account to become chrooted # and only have sftp available. No other...
View Articlecheck ulimit of a running process
mongodb user has no login shell, I can not run ulimit -a under this user. How can I check the ulimit settings for this user? # ps -ef | grep mongo | grep -v grep mongodb 46059 1 49 Apr22 ?...
View ArticleHow to check if NUMA is enabled
I am installing a mongodb install on AWS EC2. I got this info from AWS support Thanks to Petar S from AWS. There doesn't seem to be a very reliable way of checking if NUMA is enabled, however in...
View Articleadd mongodb monitoring into zabbix
https://github.com/nightw/mikoomi-zabbix-mongodb-monitoring on zabbix server install packages and mongo php driver apt-get install php5 php5-dev php-pear gcc make zabbix-sender apt-get install...
View Article