搭建一个Android后台

1.安装wmap集成环境
http://wenku.baidu.com/view/6e22dce8941ea76e58fa04ee.html
数据库密码修改文件位置
wamp\apps\phpmyadmin4.1.14\config.inc.php

2.找到httpd.conf文件
wamp/bin/apache/apache2.4.9/conf/httpd.conf

3.修改APACHE的监听端口,

(1)、在界面中选apache,弹出隐藏菜单选项,打开配置文件httpd.conf;

(2)、找到Listen 80 和 ServerName localhost:80;

(3)、将80改成8080(当然自己也可以设定别的不使用的端口,例如8000等);

(4)修改下面内容
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, instead of the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
Listen 0.0.0.0:8080
Listen [::0]:8080


4、保存,待重启WAMP服务后即可。

5.修改WAMP打开默认页 Localhost和phpMyadmin的端口:

(1)、打开wamp目录下wampmanager.tpl文件

(2)、找到
       Parameters: "http://localhost/"; Glyph: 5
      Parameters: "http://localhost/phpmyadmin/"; Glyph: 5

(3)、改成
     Parameters: http://localhost:801/; Glyph: 5
    Parameters: "http://localhost:801/phpmyadmin/"; Glyph: 5

(4)、保存,重启wamp所有服务即可。


ADB server didn’t ACK解决
是adb server端口被占用了

你先执行adb nodaemon server ,查看adb server的端口是多少
1
2
C:\Users\xxxx>adb nodaemon server 
cannot bind 'tcp:5037'
再执行下netstat -ano | findstr "5037" 

C:\Users\xxxxxx>netstat -ano | findstr "5037" 
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       4236 
  TCP    127.0.0.1:5037         127.0.0.1:49422        ESTABLISHED     4236 
  TCP    127.0.0.1:49422        127.0.0.1:5037         ESTABLISHED     3840
然后执行tskill 4236即可

你可能感兴趣的:(android)