久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

如何允許遠程訪問我的 WAMP 服務器(用于移動設備

How to allow remote access to my WAMP server for Mobile(Android)(如何允許遠程訪問我的 WAMP 服務器(用于移動設備(Android)))
本文介紹了如何允許遠程訪問我的 WAMP 服務器(用于移動設備(Android))的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我使用 PHP 和 jQuery 創(chuàng)建了一個移動網(wǎng)站.它適用于我的 PC,但現(xiàn)在我想用我的 Android 設備測試它.我該怎么做?

I have created a website for mobile using PHP and jQuery. It works on my PC but now I want to test it with my Android device. How can I do that?

如何從我的 Android 設備訪問 WAMP 服務器的 IP?

How can I access a WAMP server's IP from my Android device?

我的手機和 PC 連接在同一路由器內(nèi).我應該直接連接到我的 PC 還是通過路由器連接?

My mobile and PC are connected within the same router. Should I directly connect to my PC or can I do that through the router?

我已經(jīng)搜索過它,發(fā)現(xiàn)我必須在 phpmyadmin.conf 中更改權限,但它仍然不起作用.任何想法為什么它不起作用?

I have searched about it and found that I have to change permissions in phpmyadmin.conf but still it does not work. Any ideas why doesn't it work?

我的 httpd.config 有這樣的東西.

My httpd.config has something like this.

<Directory />
    Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.0.104
</Directory>

192.168.0.104 是我的安卓設備的 IP.

192.168.0.104 is my android device's IP.

推薦答案

我假設您使用的是 Windows.打開命令提示符并輸入 ipconfig 并找出您的本地地址(在您的電腦上)它應該類似于 192.168.1.13192.168.0.5> 其中末尾數(shù)字是更改的數(shù)字.它應該在 IPv4 地址旁邊.

I assume you are using windows. Open the command prompt and type ipconfig and find out your local address (on your pc) it should look something like 192.168.1.13 or 192.168.0.5 where the end digit is the one that changes. It should be next to IPv4 Address.

如果您的 WAMP 不使用虛擬主機,下一步是在您的手機瀏覽器中輸入該 IP 地址,即 http://192.168.1.13 如果您有虛擬主機,則需要 root編輯主機文件.

If your WAMP does not use virtual hosts the next step is to enter that IP address on your phones browser ie http://192.168.1.13 If you have a virtual host then you will need root to edit the hosts file.

如果您想測試網(wǎng)站的響應能力/移動設計,您可以在 Chrome 或其他瀏覽器中更改用戶代理以模擬移動設備.

If you want to test the responsiveness / mobile design of your website you can change your user agent in chrome or other browsers to mimic a mobile.

參見 http://googlesystem.blogspot.co.uk/2011/12/changed-user-agent-new-google-chrome.html.

Chrome 開發(fā)工具現(xiàn)在有一個移動調(diào)試工具,您可以在其中更改視口的大小、欺騙用戶代理、連接(4G、3G 等).

Chrome dev tools now has a mobile debug tool where you can change the size of the viewport, spoof user agents, connections (4G, 3G etc).

如果您被禁止訪問,請查看此問題 WAMP 錯誤:禁止您無權訪問此服務器上的/phpmyadmin/.基本上,將httpd.conf 文件中deny,allow 的出現(xiàn)更改為allow,deny.您可以通過 WAMP 菜單訪問它.

If you get forbidden access then see this question WAMP error: Forbidden You don't have permission to access /phpmyadmin/ on this server. Basically, change the occurrances of deny,allow to allow,deny in the httpd.conf file. You can access this by the WAMP menu.

要暫時消除問題的可能原因,請將您的配置文件設置為

To eliminate possible causes of the issue for now set your config file to

<Directory />
    Options FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
    <RequireAll>
        Require all granted
    </RequireAll>
</Directory>

因為這適用于我的 Windows PC,如果您也有目錄配置塊,請將其更改為允許所有.

As thatis working for my windows PC, if you have the directory config block as well change that also to allow all.

解決問題的配置文件:

https://gist.github.com/samvaughton/6790739

問題是/www apache 目錄配置塊仍然將拒絕設置為默認值,并且只允許來自本地主機.

Problem was that the /www apache directory config block still had deny set as default and only allowed from localhost.

這篇關于如何允許遠程訪問我的 WAMP 服務器(用于移動設備(Android))的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

相關文檔推薦

Joining 2 tables in SELECT(MYSQL/PHP)(在 SELECT(MYSQL/PHP) 中加入 2 個表)
How to make lt;option selected=quot;selectedquot;gt; set by MySQL and PHP?(如何使lt;option selected=“selectedgt;由 MySQL 和 PHP 設置?)
Auto populate a select box using an array in PHP(使用 PHP 中的數(shù)組自動填充選擇框)
PHP SQL SELECT where like search item with multiple words(PHP SQL SELECT where like search item with multiple words)
json_encode produce JSON_ERROR_UTF8 from MSSQL-SELECT(json_encode 從 MSSQL-SELECT 產(chǎn)生 JSON_ERROR_UTF8)
MySQL ORDER BY rand(), name ASC(MySQL ORDER BY rand(),名稱 ASC)
主站蜘蛛池模板: 色视频在线免费观看 | 国产成人午夜精品影院游乐网 | 黑人性hd | 在线观看亚洲精品视频 | 欧美一区二区综合 | 国产在线中文字幕 | 中文字幕在线视频观看 | 在线观看午夜视频 | 精品一区二区三区四区 | 国产www成人 | 国产网站在线播放 | 欧美精品成人 | 国产 日韩 欧美 制服 另类 | 9999国产精品欧美久久久久久 | 午夜免费福利影院 | 成人免费视频在线观看 | 密色视频 | 日韩av在线一区二区三区 | 国产综合久久 | 精品日韩一区二区三区av动图 | 欧美一区二区久久 | 欧美日韩中文字幕在线播放 | 69av网 | 色999日韩| 久草视频在 | 精品久久国产 | 性一交一乱一伦视频免费观看 | 国产精品久久久久久婷婷天堂 | 亚洲欧美日韩久久 | 久久精品视频在线观看 | 91精品一区二区三区久久久久 | 91久久视频 | 亚洲人成在线播放 | 免费在线观看av的网站 | 日韩欧美一区二区三区免费观看 | 在线观看不卡av | 国产观看| 亚洲精品中文字幕在线 | 四虎最新地址 | 久久久久久久一区 | 亚洲精品一区二区在线观看 |