centOS 开发机 常用 软件包
#!/bin/bash
function install_basic_deps()
{
echo ">0. install basic utilities ..."
which man || yum -y install man
which vim || yum -y install vim
which wget || yum -y install wget
which python || yum -y install python
which sar || yum -y install sysstat # sar iostat
yum -y install traceroute telnet mtr
yum -y install bind-utils # nslookup dig host
yum -y install binutils lsof
yum -y install readline-devel ncurses-devel
yum -y install gcc gdb strace
yum -y install tcpdump
}
install_basic_deps
function install_mysql()
{
echo ">2. install mysql..."
yum -y install mysql mysql-server mysql-libs
# this may failed because of mutilib libselinux problem.
yum -y install mysql-devel || echo "install mysql-devel failed"
mysql_install_db
chkconfig --add mysqld
chkconfig --levels 35 mysqld on
echo "start mysqld as a service."
service mysqld start
/usr/bin/mysqladmin -u root password 'rootpass'
}
install_mysql
阅读(1056) | 评论(0) | 转发(0) |