CentOS 6.2 Apache服务器安装
CentOS 6.2 Apache服务器安装:
1.service iptables stop
2.yum install httpd mysql mysql-server php php-mysql
/etc/httpd/conf/httpd.conf (主要設定檔)
首頁 /var/www/html/
3.vim /etc/php.ini 改下面
ignore_repeated_errors = On <==這個設定值調整一下 (因預設為 Off)
ignore_repeated_source = On <==這個設定值調整一下
4.service httpd restart
service mysqld start
5.mysqladmin -u root password 'your.password'// 添加mysql密码
mysql -u root -p
mysql> create database yourdb; // 创建数据库<==注意每個指令後面都要加上分號 (;)
mysql> grant all privileges on yourdb.* to root@localhost identified by 'your.password' ;
mysql> show databases; // 可以看到是否添加成功
mysql> exit
到此服务器的架设已经完成,将网站目录放到/var/www/html/内
相关推荐
tangjianft 2020-07-04
CoderToy 2020-11-16
bianruifeng 2020-11-16
云中舞步 2020-11-12
敏敏张 2020-11-11
暗夜之城 2020-11-11
好记忆也需烂 2020-11-11
Coder技术文摘 2020-09-29
huacuilaifa 2020-10-29
Gexrior 2020-10-22
lpfvip00 2020-10-07
云中舞步 2020-09-11
康慧欣 2020-09-10
silencehgt 2020-09-07
幸福ITman汪文威 2020-09-05
sofia 2020-09-03
nan00zzu 2020-08-19
CHINA华军 2020-08-18