Chinaunix首页 | 论坛 | 博客
  • 博客访问: 422411
  • 博文数量: 78
  • 博客积分: 1563
  • 博客等级: 上尉
  • 技术积分: 910
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-25 09:58
个人简介

爬虫

文章分类

全部博文(78)

文章存档

2020年(1)

2016年(1)

2015年(9)

2014年(1)

2013年(8)

2012年(6)

2011年(3)

2010年(4)

2008年(8)

2007年(13)

2006年(24)

我的朋友

分类: LINUX

2020-10-16 11:57:56


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
阅读(6021) | 评论(0) | 转发(1) |
0

上一篇:批量转多文件夹内DOC为TXT,再合并TXT

下一篇:没有了

给主人留下些什么吧!~~