标签:

使用xftp传到虚拟机。
解压
[root@ygy130 ~]# unzip -o -d ./Ucenter_1.6 UCenter_1.6.0_SC_UTF8.zip
[root@ygy130 ~]# cd Ucenter_1.6/
[root@ygy130 Ucenter_1.6]# cp upload/* /var/www/html/ -r
[root@ygy130 Ucenter_1.6]# chmod  777 /var/www/html/* -R
 
[root@ygy130 Ucenter_1.6]# vim /etc/php.ini
 
[root@ygy130 Ucenter_1.6]# service httpd restart
 

 
 


设置域名
[root@ygy130 ~]# find / -name httpd.conf
[root@ygy130 ~]# vim /etc/httpd/conf/httpd.conf
 
[root@ygy130 ~]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd: httpd: Could not reliably determine the server‘s fully qualified domain name, using 192.168.31.130 for ServerName
修改下面去掉警告
 
[root@ygy130 ygy]# service httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
在另一台主机的etc/hosts 添加域名
[root@yu131 ~]# vim /etc/hosts
 

 
 
标签:
原文地址:http://www.cnblogs.com/yuguangyuan/p/5971841.html