Fedora 安装常用软件及配置

1。Fedora里安装php/mysql
(安装系统后默认安装了apache)
yum -y php mysql mysql-server php-mysql
//安装apache扩展
yum -y install httpd-manual mod_ssl mod_perl mod_auth_mysql
//安装php的扩展
yum -y php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
//安装mysql扩展
yum -y mysql-connector-odbc mysql-devel libdbi-dbd-mysql
 
2.配置apache/php/mysql
 
service httpd  start //启动apache
service mysqld start //启动mysql
 
chkconfig --levels 235 httpd on  //开机自动启动
chkconfig --levels 235 mysql on  //开机自动启动
 
 
#mysqladmin uroot password 123456789
#mysql -uroot -p
mysql>drop database test;

相关推荐