火币HTX
火币是全球三大交易所之一,虚拟货币交易平台安全可靠,注册领取新人礼包!
1、安装服务
yum install httpd
yum install php
yum install mysqld
yum install mariadb
yum install php-gd
yum install php-xml
yum install php-mbstring
yum install lrzsz
yum install php-mysql
yum install mariadb
yum install mariadb-server
2、启动服务和设置成开机自启动
service httpd start
service mariadb start
systemctl enable httpd
systemctl enable mariadb
3、清空mysql密码,让navicate能远程连接
use mysql
update user set host=’%’ where host=’127.0.0.1′ ;
service mariadb restart
4、修改php.ini配置,修改上传的文件大小
5、httpd的虚拟主机配置
VirtualHost *:80
ServerName www.域名.com
DocumentRoot /var/www/html/
Options FollowSymLinks
AllowOverride All
Options FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2’s default start page
# in /apache2-default/, but still have / go to the right place
# RedirectMatch ^/$ /apache2-default/
LogLevel error
ServerSignature On
LimitRequestFieldSize 40960
LimitRequestLine 40960
VirtualHost
6、重启httpd服务
service httpd restart
网站名称:玩转网
本文链接:
版权声明:知识共享署名-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0)协议进行许可
本站资源仅供个人学习交流,转载时请以超链接形式标明文章原始出处,(如有侵权联系删除)