service iptables stop
service iptables status
rpm -qa | grep mysql
rpm -qa | grep mysql
yum install -y mysql-server mysql mysql-deve
rpm -qi mysql-server
service mysqld start
service mysqld start
service mysqld restart
mysqladmin -u root password '123456'
mysql -u root -p
192.168.157.138
find / -name mysql
yum install httpd
systemctl start httpd.service
#/sbin/chkconfig httpd on [设置apache服务器httpd服务开机启动]
#/sbin/service httpd start [启动httpd服务,与开机启动无关]
#/sbin/service mysqld start [启动mysqld服务,与开机启动无关]
说明:
apache的配置文件是/etc/httpd/conf下modules放在/usr/lib/httpd下php的配置文件在/etc/php.d/下 和/etc/php.iniphp的modules放在/usr/lib/php/modules下
yum install php
yum install php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash
yum install php-mysql php-gd libjpeg* php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-bcmath php-mhash
index.html index.htm Default.html Default.htm index.php
http://www.osyunwei.com/archives/7882.html
http://jingyan.baidu.com/article/a3aad71acae28eb1fb009698.html
http://blog.itpub.net/29773961/viewspace-1261417/
http://www.cnblogs.com/zgaspnet/p/3939198.html
http://www.cnblogs.com/jshen/archive/2013/07/05/3173729.html