当多个手机同时连接电脑,adb 命令中如何进入指定设备

当多个手机同时连接电脑,adb 命令中如何进入指定设备 adb devicesdaemon not running. starting it now on port 5037 List of devices attachedfc2f9754 deviced51ad9ff device   //此时我们就可以指定序列号,进入 adb -s d51ad9ff shell 当有一个模拟器和一个真实的手机连接的时候: //进入模拟器 C:\\Users\\Administrator>adb -e shell //进入手机 C:\\Users\\Administrator>adb -d shell   Mac 使用MuMu模拟器调试 sudo lsof -i:22471sudo adb connect localhost:22471 然后连接成功。三、设备offline1、依次执行以下命令 adb kill-server adb start-serveradb devices 四、后续开发使用1、打开mumu模拟器2、依次执行以下命令 adb kill-serveradb start-server   MacOS 安装 Android Debug Bridge (ADB)安装方式-homebrew $brew cask install android-platform-tools$adb devices

配置多个 路由端口代理. + 局域网 网盘+ samba 配置! 密码配置!

配置多个  路由端口代理   kcptun — socksshow kcptun — frps sever  https://github.com/xtaci/kcptun/releases 路由器 kcptun-linux-mipsle-20190428.tar.gz kcptun-linux-mipsle-20190428.tar.gz  // 链接 , for 路由端 服务器 https://www.yuxuyi.com/?p=24 Linux利用Kcptun加速ShadowsocksLinux利用Kcptun加速Shadowsocks  cp  /root/kcptun/server-config.json  /root/kcptun/kcp2frp.json cp /etc/systemd/system/kcptun.service   /etc/systemd/system/kcp2frp vi  /etc/systemd/system/kcp2frp Description=kcp2frp service After=network.target Type=simple ExecStart=/PATH/server_linux_amd64 -l \":29900\" -t \"127.0.0.1:8838\" --key\"test\" --mode \"fast2\" Restart=on-abort WantedBy=multi-user.target 加入开机启动:systemctl enable kcptun.service 查看服务状态:systemctl status kcptun.service 关闭服务:systemctl stop kcptun.service 重启服务:systemctl restart kcptun.service 启动命令:systemctl start kcptun.service 通过netstat -an命令检查端口是否已开启或者是否被占用。 start /b client_windows_amd64.exe -l \":2000\" -r \"xxx.xxx.xxx.xxx:29900\" --key \"test\" --mode \"fast2\" > kcptun.log 2>&1 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ vim /etc/systemd/system/frps.service 加入开机启动:systemctl enable frp.service 查看服务状态:systemctl status frp.service 关闭服务:systemctl stop frp.service 重启服务:systemctl restart frp.service 启动命令:systemctl start frp.service 通过netstat -an命令检查端口是否已开启或者是否被占用。 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ kcptun 如何多端口加速? https://www.v2ex.com/t/375611 nohup ./server_linux_amd64 -c /path/to/server-config1.json > /path/to/1.log 2>&1 & nohup ./server_linux_amd64 -c /path/to/server-config2.json > /path/to/2.log 2>&1 & https://saodaye.com/zz/1122.html BBR+魔改BBR+暴力魔改BBR+Lotsever(锐速)一键开启脚本,支持Centos/Debian/Ubuntu Ubuntu 18.04 魔改BBR暂时有点问题,可使用以下命令安装 首先测试 手机端 的 19999, 文件, +  ss 安装, 测试! - key=test;crypt=aes;mode=fast2;mtu=1350;sndwnd=1024;rcvwnd=1024;datashard=70;parityshard=30;dscp=46;nocomp=false;acknodelay=false;nodelay=0;interval=40;resend=0;nc=0;sockbuf=4194304;keepalive=10   131  wget https://github.com/fatedier/frp/releases/download/v0.27.0/frp_0.27.0_linux_amd64.tar.gz   133  tar -zxvf *.gz   135  cd frp_0.27.0_linux_amd64/   144  ls   /etc/systemd/system/   147  cp  frps.service /etc/systemd/system/ vim /etc/systemd/system/frps.service ExecStart=/root/frps/frps -c /root/frps/frps.ini 57000 { \"listen\": \":41866\", \"target\": \"127.0.0.1:57000\", \"key\": \"test\", \"crypt\": \"aes\", \"mode\": \"fast2\", \"mtu\": 1350, \"sndwnd\": 1024, \"rcvwnd\": 1024, \"datashard\": 70, \"parityshard\": 30, \"dscp\": 46, \"nocomp\": false, \"acknodelay\": false, \"nodelay\": 0, \"interval\": 40, \"resend\": 0, \"nc\": 0, \"sockbuf\":

迁移服务器 WebDAV!!

搭建h5ai文件服务器 h5ai是一款不错的php目录列表程序,也就是php列目录工具,支持apache和nginx php-fpm - code -for Nginx!!!         location ~ \\.php$ {             try_files $uri =404;             root           /srv/www/htdocs/;             fastcgi_pass   127.0.0.1:9000;             fastcgi_index  index.php;             fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;             include        fastcgi_params;         } Installing Nginx With PHP5 (And PHP-FPM) And MySQL Support On OpenSUSE 12.2 - Page 2      location / {             root   /srv/www/htdocs/;             index  iindex.php index.html index.htm;         } ease 【首发教程】用nginx来代替uhttpd执行luci/php/反向代理/静态服务器   Using Owncloud   opkg install \\ bzip2 \\ php7-cgi \\ lighttpd-mod-fastcgi \\ lighttpd-mod-access \\ php7-mod-ctype \\ php7-mod-curl \\ php7-mod-dom \\ php7-mod-fileinfo \\ php7-mod-gd \\ php7-mod-hash \\ php7-mod-iconv \\ php7-mod-json \\ php7-mod-mbstring \\ php7-mod-pdo \\ php7-mod-pdo-sqlite \\ php7-mod-session \\ php7-mod-simplexml \\ php7-mod-sqlite3 \\ php7-mod-xml \\ php7-mod-xmlwriter \\ php7-mod-xmlreader \\ php7-mod-zip   如何配置在Ubuntu 14.04与Apache WebDAV访问   OpenWrt 使用 frp 实现内网穿透 运行:frpc -c /usr/local/frp/frpc.ini >/dev/null 2>&1 & 结束:killall frpc 开机运行:sed -i \'/exit 0/i\\sleep 10 && frpc -c

路由器减负- 去掉多余插件 重新安装apache-Entware php7-fpm+mysql5.1–pandorabox 出现rootfs文件无法驱动问题是禁用usb3! 所有优化设置里面查看完!!以及如何安装专业 戴尔win8光盘手动激活,姑父张楼下的Wi-Fi密码

姑父张的路由器,感谢 1, 路由5ghz 接收,发送信号, 所以效率低, 24Mbps 损失一半!  2,5ghz 和2.4ghz 局域网ping不同,在中继信号时候!而且 无法上网,中继效率损失70%, 效率低,延迟高到300ms! 3,扫描,添加,2.4gzh中继,重置默认无线设置,---》 2.4g接受,5ghz 发送,效率提高两倍,互相补干扰。 一次优化,再次的更改   option+command+i mac怎么查看选中几个文件的一共大小 数据库导出的时候居然提示错误。 Fatal error: Cannot \'break\' 2 levels in /www/server/phpmyadmin/phpmyadmin_0ae8f84f29303772/export.php on line 864 解决方法:找到export.php文件的第864行,把break 2; 改成break;即可导出数据库了。 break; 跳出当前循环 break 2; 跳出2层循环。 宝塔面板phpmyadmin导出数据库出现错误’break’2 opkg install block-mount kmod-usb2kmod-usb-storage fdisk opkg install kmod-fs-ext4 :MySQL配置(六) https://www.cnblogs.com/double-win/p/3866189.html #block info /dev/mtdblock6: UUID=\"7d2fb0dd-7d9fb2a6-ac436109-4e81f707\" VERSION=\"4.0\" MOUNT=\"/rom\" TYPE=\"squashfs\" /dev/mtdblock7: MOUNT=\"/overlay\" TYPE=\"jffs2\" /dev/mmcblk0: UUID=\"b4d0196f-95a0-424f-851e-fc947faf6220\" VERSION=\"1.0\" MOUNT=\"/mnt/mmcblk0\" TYPE=\"ext4\" /dev/sdb1: VERSION=\"1\" TYPE=\"swap\" /dev/sdb2: UUID=\"e524fe43-ffb5-433f-b77f-85ece43df5a7\" VERSION=\"1.0\" MOUNT=\"/mnt/sdb2\" TYPE=\"ext4\" #mount /dev/sdb2 /mnt ; tar -C /overlay -cvf - . | tar -C /mnt -xf - ; umount /mnt 出现rootfs文件无法驱动问题是禁用usb3! 所有优化设置里面查看完!! mkdir -p /tmp/introot mkdir -p /tmp/extroot mount --bind / /tmp/introot mount /dev/sda2 /tmp/extroot tar -C /tmp/introot -cvf - . | tar -C /tmp/extroot -xf - umount /tmp/introot umount /tmp/extroot   2. Perform the entware install. The script will install entware to /opt. On ARM devices wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | sh On MIPS devices: wget -O - http://pkg.entware.net/binaries/mipsel/installer/installer.sh | sh 3. Entware is now installed. Use \'opkg\' command to install pkgs https://github.com/Entware/Entware/wiki/Using-Owncloud   opkg install \\ bzip2 \\ php7-fpm \\ php7-mod-ctype \\ php7-mod-curl \\ php7-mod-dom \\ php7-mod-fileinfo \\ php7-mod-gd \\ php7-mod-hash \\ php7-mod-iconv \\ php7-mod-json \\ php7-mod-mbstring \\ php7-mod-pdo \\ php7-mod-pdo-sqlite \\ php7-mod-session \\ php7-mod-simplexml

通信更新,配置文件备份

基础,配置文件,简化版--最小化 <VirtualHost *:443> ServerName webdav.com ServerAlias file.ssl-encrypted.cf DocumentRoot \"/home/upload\" DavLockDB \"/opt/share/htdocs/DavLock\" <Directory \"/home/upload\"> DirectoryIndex disabled Order Allow,Deny Allow from all Dav On AuthType Basic AuthName DAV AuthUserFile \"/opt/user.basic\" <LimitExcept GET POST OPTIONS> Require user admin </LimitExcept> </Directory> </VirtualHost> <VirtualHost *:443> ServerName huawei.webdav2.com ServerAlias huawei.ssl-encrypted.cf ProxyRequests off <Proxy *> Order allow,deny Allow from all </Proxy> ProxyPass / http://192.168.8.1/ ProxyPassReverse / http://192.168.8.1/ ProxyPass /html/ http://192.168.8.1/html/ ProxyPassReverse /html/ http://192.168.8.1/html/ ProxyPass \"/css/\" \"http://192.168.8.1/css/\" ProxyPassReverse \"/css/\" \"http://192.168.8.1/css/\" ProxyPass \"/js/\" \"http://192.168.8.1/js/\" ProxyPassReverse \"/js/\" \"http://192.168.8.1/js/\" ProxyPass \"/lib/\" \"http://192.168.8.1/lib/\" ProxyPassReverse \"/lib/\" \"http://192.168.8.1/lib/\" ProxyPass \"/res/\" \"http://192.168.8.1/res/\" ProxyPassReverse \"/res/\" \"http://192.168.8.1/res/\" </VirtualHost> <VirtualHost *:443> ServerName webdav2.com ServerAlias ssl-encrypted.cf DocumentRoot \"/opt/share/htdocs\" SSLEngine on SSLCertificateFile \"/opt/etc/apache/ssl-encrypted.cf/fullchain1.pem\" SSLCertificateKeyFile \"/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\" <Directory \"/opt/share/htdocs\"> DirectoryIndex index.php index.htm index.html Require all granted </Directory> ErrorLog \"/opt/var/log/error_log\" TransferLog \"/opt/var/log/access_log\" </VirtualHost> ======================================================= 全站 ssl化的 之前的 完整文件 ========================================= <VirtualHost *:100> ServerName webdav.com ServerAlias file.ssl-encrypted.cf DocumentRoot \"/home/upload\" DavLockDB \"/opt/share/htdocs/DavLock\" #<Directory \"/opt/share/htdocs\"> <Directory \"/home/upload\"> # DirectoryIndex none 这样的方法也是可以生效的! # 不接受 index。php 等等文件的索引! DirectoryIndex disabled Order Allow,Deny Allow from all Dav On AuthType Basic AuthName DAV AuthUserFile \"/opt/user.basic\" <LimitExcept GET POST OPTIONS> Require user admin </LimitExcept> </Directory> </VirtualHost> <VirtualHost *:100> ServerName webdav2.com ServerAlias ssl-encrypted.cf DocumentRoot \"/opt/share/htdocs\" <Directory \"/opt/share/htdocs\"> DirectoryIndex index.php index.htm index.html Require all granted </Directory> </VirtualHost> <VirtualHost *:100> ServerName huawei.webdav2.com ServerAlias huawei.ssl-encrypted.cf ProxyRequests off

通信更新,全站ssl化! 盲目没有计划,重新设定目标,最小化测试,完整备份,再做修改–ok!制定计划,方案,流程图!结构化思考,才有未来!

accord. 1, dsm6.5+frp+ppt 2, frp+ nginx uhttpd 443, pravite. test. + simple windows1, putty==================================== back , stop httpd stop frpc apachectl -k stop /opt/etc/init.d/S84frpc stop frpc -c /opt/etc/frpc_full.ini windows2, putty====================================== vim /etc/config/uhttpd /etc/init.d/uhttpd restart netstat -apn | grep 443 https://192.168.11.1 vim frpc.ini---> ssl frpc -c /opt/etc/frpc_full.ini vim /opt/etc/frpc_full.ini frpc -c ./ssl https://ssl-encrypted.cf ========ok! uhttpd, cert, key, ========ok! vim /opt/etc/apache/extra/httpd-ssl.conf SSLCertificateFile \"\" SSLCertificateKeyFile \"/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\" option cert \'/etc/uhttpd.crt\' option key \'/etc/uhttpd.key\' option cert \'/opt/etc/apache/ssl-encrypted.cf/fullchain1.pem\' option key \'/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\' https https://192.168.11.1 https://192.168.11.1 https://ssl-encrypted.cf --------simple configure httpd, ssl, localhost, test! duli, ssl, ssl, httpd , key, + cert, (uhttpd) cp /opt/etc/apache/httpd.conf /opt/etc/apache/httpd.conf--good-use cp /opt/etc/apache/extra/httpd-ssl.conf /opt/etc/apache/extra/httpd-ssl.conf--good-use vim /opt/etc/apache/httpd.conf vim /opt/etc/apache/extra/httpd-ssl.conf /etc/init.d/uhttpd stop apachectl -k stop apachectl -k start ------------------------------------------------ <VirtualHost *:443> ServerName webdav2.com ServerAlias ssl-encrypted.cf DocumentRoot \"/opt/share/htdocs\" SSLEngine on SSLCertificateFile \"/opt/etc/apache/ssl-encrypted.cf/fullchain1.pem\" SSLCertificateKeyFile \"/opt/etc/apache/ssl-encrypted.cf/privkey1.pem\" <Directory \"/opt/share/htdocs\"> DirectoryIndex index.php index.htm index.html Require all granted </Directory> ErrorLog \"/opt/var/log/error_log\" TransferLog \"/opt/var/log/access_log\" BrowserMatch \"MSIE \" \\ nokeepalive ssl-unclean-shutdown \\ downgrade-1.0 force-response-1.0 CustomLog \"/opt/var/log/ssl_request_log\" \\ \"%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \\\"%r\\\" %b\" </VirtualHost> --------------------------------------------- vim only one ssl, simple! listen 443 php ----*.php =====================only one 443 https://webdav2.com/ ====================ok! frpc -c ./ssl https://ssl-encrypted.cf ok! only one listen 443 port! webdav.com webdav2.com ssl paa.com ==> location /paa //webdav-cdn webdav.com --0> location /file //wevdav.com pan.com --->

openwrt ng下面, 编译, 如何安装, 缺失,定向任务, 最值钱———–时间!

图片经过php压缩, 所以现实慢 http://localhost/desktop/index.php?explorer/image&path=C%3A%2FUPUPW_AP7.2_64%2Fhtdocs%2Fdesktop%2Fdata%2FUser%2Fadmin%2Fhome%2Fpictures%2Fyy.jpg&thumbWidth=1600 http://localhost/desktop/index.php?desktop 受制于服务器性能 官网可以解压rar 因为是php-rar.so , 组件存在,不是 openwrt 系统存在 rar, librar , 不起作用,调用哪个的是php 组件! 测试 ,win8, phpx64 rar , 可以解压 http://pecl.php.net/package/rar/4.0.0/windows 添加 x64 php7.2 rar , 组件,7.2 Thread Safe (TS) x64 http://www.884358.com/php-rar/PHP 安装rar扩展实现对rar文件的解压和压缩 以通过查看phpinfo里面的Thread Safety 项,如果是enabled,一般来说应该是ts版,否则是nts版。 Thread Safety enabled http://localhost/tz.php?act=phpinfo https://blog.csdn.net/yyyfff43/article/details/51614689 Linux下安装php压缩包扩展rar.so gunzip rar-xxx.tgz tar -xvf rar-xxx.tar cd rar-xxx phpize ./configure && make && make install openwrt ng下面, 编译, 如何安装, 缺失,定向任务, 最值钱-----------时间!

通信更新 wordpress 图片相对路径修改 , pan.com 700,架设lighttpd, wordpress文件修改的位置在 引用里面

wordpress, 图片相对路径 function wp_get_attachment_url( $post_id =0 ) { $file_dir=dirname(__FILE__); $server_root=$_SERVER; $file_dir=substr($file_dir,strlen($server_root)); $file_dir=substr($file_dir,0,-12); if($file_dir!=\'\'){ $file_dir=\'/\'.substr($file_dir,1); } $post_id = (int) $post_id; if ( !$post =& get_post( $post_id ) ) return false; $url = \'\'; if ( $file = get_post_meta( $post->ID,\'_wp_attached_file\', true) ) { //Get attached file if ( ($uploads = wp_upload_dir())&& false === $uploads ) { //Get upload directory if ( 0 === strpos($file,$uploads) ) //Check that the upload base exists in the file location //$url = str_replace($uploads,$uploads, $file); //replace file location with url location $url=$file_dir.\"/wp-content/uploads/\".$file; elseif ( false !== strpos($file, \'wp-content/uploads\')) //$url = $uploads . substr($file, strpos($file, \'wp-content/uploads\') + 18 ); $url=$file_dir.\"/wp-content/uploads/\".$file; else //$url = $uploads .\"/$file\"; //Its a newly uploaded file, therefor $file is relative tothe basedir. $url=$file_dir.\"/wp-content/uploads/\".$file; } } if ( empty($url) ) //If any of the aboveoptions failed, Fallback on the GUID as used pre-2.7, not recomended to relyupon this. $url = get_the_guid( $post->ID ); if ( \'attachment\' != $post->post_type|| empty($url) ) return false; return apply_filters(\'wp_get_attachment_url\', $url, $post->ID ); }   3 cd lighttpd/ 5 vim lighttpd.conf 38 bzip2 \\ 39 lighttpd-mod-fastcgi \\ 40 lighttpd-mod-access \\ 41 cd /web/press 46 cd themes/ 53 vim functions.php 54 nano functions.php 55 vim functions.php 56 cd /opt/share/htdocs/press/wp-admin 58 cp options.php options.php-bak