怎样利用XAMPP搭建本地php环境
2017-07-04 17:42
537 查看
启动xampp
点击mySql的admin
下载mySql 和运维人员要取账号登录
登录成功后,把表复制到本地localhost
Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!
找到如下图文件
代码如下:
be68
redis-server.exe启动radis
1.和管理员要取radis密码,文件夹在如下图所示:
2.radis必须从cmd窗口启动:
命令行:cd redis-server.exe空格redis.conf
重启xampp 即可
点击mySql的admin
下载mySql 和运维人员要取账号登录
登录成功后,把表复制到本地localhost
注意
新建表的选项:Hosts文件主要作用是定义IP地址和主机名的映射关系,是一个映射IP地址和主机名的规定。可以用文本文件打开!当用户在浏览器中输入一个需要登录的网址时,系统会首先自动从Hosts文件中寻找对应的IP地址,一旦找到,浏览器会立即打开对应网页,如果没有找到,则浏览器会将网址提交DNS服务器进行IP地址解析。这也是提高快速打开网页的方法!
找到如下图文件
代码如下:
# Virtual Hosts # # Required modules: mod_log_config # If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. Most configurations # use only name-based virtual hosts so the server doesn't need to worry about # IP addresses. This is indicated by the asterisks in the directives below. # # Please see the documentation at # <URL:http://httpd.apache.org/docs/2.4/vhosts/> # for further details before you try to setup virtual hosts. # # You may use the command line option '-S' to verify your virtual host # configuration. # # Use name-based virtual hosting. # ##NameVirtualHost *:80 # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ##ServerName or ##ServerAlias in any <VirtualHost> block. # ##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host.example.com ##DocumentRoot "C:/xampp/htdocs/dummy-host.example.com" ##ServerName dummy-host.example.com ##ServerAlias www.dummy-host.example.com ##ErrorLog "logs/dummy-host.example.com-error.log" ##CustomLog "logs/dummy-host.example.com-access.log" common ##</VirtualHost> ##<VirtualHost *:80> ##ServerAdmin webmaster@dummy-host2.example.com ##DocumentRoot "C:/xampp/htdocs/dummy-host2.example.com" ##ServerName dummy-host2.example.com ##ErrorLog "logs/dummy-host2.example.com-error.log" ##CustomLog "logs/dummy-host2.example.com-access.log" common ##</VirtualHost> <VirtualHost *:80> ServerName yxeplus.com DocumentRoot "F:/work/yxeplus_web/public" <Directory "F:/work/yxeplus_web/public"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerName yxcfu-web.com DocumentRoot "F:/work/yxcfu-web/public" <Directory "F:/work/yxcfu-web/public"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerName yxcfu-qbx-web.com DocumentRoot "F:/work/yxcfu-qbx-api/public" <Directory "F:/work/yxcfu-qbx-api/public"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerName yxbao2.com DocumentRoot "F:/work/yxbao-web" <Directory "F:/work/yxbao-web"> Options FollowSymLinks IncludesNOEXEC Indexes DirectoryIndex index.html index.htm index.php AllowOverride all Order Deny,Allow Allow from all Require all granted </Directory> </VirtualHost>
下载radis
双击be68
redis-server.exe启动radis
注意
遇到tp框架会提示radis密码错误解决方案1.和管理员要取radis密码,文件夹在如下图所示:
2.radis必须从cmd窗口启动:
命令行:cd redis-server.exe空格redis.conf
重启xampp 即可
相关文章推荐
- [PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(四. iOS端代码实现)
- [PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(二.配置MySQL数据库)
- 使用XAMPP搭建本地JSP+PHP环境
- 利用XAMPP搭建本地环境
- 利用elcipse和XAMPP搭建PHP+Apache+MySQL环境
- [PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(一.安装XAMPP)
- PHP本地文件包含漏洞环境搭建与利用
- 利用XAMPP搭建PHP开发环境,解决443端口被占用
- iOS实战演练之关于数据交互的问题(利用XAMPP搭建本地服务器, 编写PHP代码实现iOS端注册登录功能)
- 搭建Windows系统下php开发环境有很多种方式,比如LAMP的配置、php IDE和调试工具的选择等等。根据每个人喜好不同有很多配置方式。这里主要介绍的是利用XAMPP集成安装和配置apache、
- [PHP]利用XAMPP搭建本地服务器, 然后利用iOS客户端上传数据到本地服务器中(三. PHP端代码实现)
- PHP开发使用xampp搭建本地开发环境
- PHP软件开发环境的搭建(XAMPP)
- 利用XAMPP配置PHP环境和第一个php程序
- 利用XAMPP 在win7环境安装apache, php, mysql
- 搭建PHP后台开发环境, XAMPP
- PHP开发环境搭建(Eclipse PDT XAMPP XDEBUG)
- PHP开发环境搭建 (XAMPP+Xdebug+netbeans,配置调试)
- WIN7+XAMPP搭建PHP环境
- 【PHP基础】最快速简易apache+mysql本地PHP环境搭建教程