#!/bin/bash date for id in `mysqladmin processlist | grep -i “your detect filter” |awk ‘{print $2}’` do mysqladmin kill ${id}; echo ${id}.’\n'; done
#!/bin/bash date for id in `mysqladmin processlist | grep -i “your detect filter” |awk ‘{print $2}’` do mysqladmin kill ${id}; echo ${id}.’\n'; done
yum install -y ruby ruby-devel rubygems gem update gem install capistrano gem install capistrano-ext
ps -ef |grep “string matches”|grep -v “grep” |awk ‘{print $2}’|xargs kill -9
#sudo apt-get install python-software-properties python g++ make #sudo add-apt-repository ppa:chris-lea/node.js #sudo apt-get update #sudo apt-get install nodejs #apt-get install software-properties-common
//comment //npm is automatically installed with node.js in the latest version of node.
#node –version #npm –version
//will show the version,upgrade npm use the follow command.
#sudo npm install -g . . . → Read More: Install NodeJS on Ubuntu Server
Ubuntu server安裝VMware tools的步骤:
1.VMware操作环境中,点菜单Inventory -> Virtual Machin -> Guest ->Install / Upgrade Vmware Tools
2.在Guest os的Ubuntu server中安裝所需的套件。
aptitude install gcc build-essential linux-headers-`uname-r` psmisc
3.在Ubuntu server中安裝Vmware tools
mount /dev/cdrom /media/cdrom
cp VMwareTools-….. /tmp/
tar zxvf VMwareTools-…..
cd vmware…..
./vmware-install.pl
4. reboot
最新评论