官方網站:chinaunix.net
Mysql安裝:
1、linux代碼
yum install mysql mysql-server mysql-devel 安裝mysql及服務驅動
2 、mysql相關操作
/etc/init.d/mysqld start 啓動mysql
/etc/init.d/mysqld restart mysql重啓
/etc/init.d/mysqld stop mysql停止
3、設置MySQL初始密碼
mysqladmin -u root password 123456
4、設置遠程登錄權限
mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON *.* TO '用戶名'@'地址' IDENTIFIED BY '密碼' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
Apache 安裝:
1、linux代碼
yum install httpd httpd-devel
/etc/init.d/httpd start
2 、apache相關操作
/etc/init.d/httpd start 啓動apachel
/etc/init.d/httpd restart 重啓apache
/etc/init.d/httpd stop 停止apache
Php 安裝及插件:
1、linux代碼
yum install php php-mysql php-common php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc
Mysql安裝:
1、linux代碼
yum install mysql mysql-server mysql-devel 安裝mysql及服務驅動
2 、mysql相關操作
/etc/init.d/mysqld start 啓動mysql
/etc/init.d/mysqld restart mysql重啓
/etc/init.d/mysqld stop mysql停止
3、設置MySQL初始密碼
mysqladmin -u root password 123456
4、設置遠程登錄權限
mysql -u root -p
mysql> GRANT ALL PRIVILEGES ON *.* TO '用戶名'@'地址' IDENTIFIED BY '密碼' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
Apache 安裝:
1、linux代碼
yum install httpd httpd-devel
/etc/init.d/httpd start
2 、apache相關操作
/etc/init.d/httpd start 啓動apachel
/etc/init.d/httpd restart 重啓apache
/etc/init.d/httpd stop 停止apache
Php 安裝及插件:
1、linux代碼
yum install php php-mysql php-common php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc