美国SIM实体电话卡Lycamobile激活充值关闭语音信箱

网红款美国SIM实体电话卡Lycamobile 激活SIM卡获得电话号码 去Lycamobile官方网站 的在线激活页面Activate SIM - Lycamobile完成 激活前请不要把SIM卡插入到手机 ZIP code: 10065 #选择纽约州纽约曼哈顿中城10065会有机率分配到212区号 ICCID: Email address: PUK Code: Select Language: English 看到提示 12127299444 Sim Successfully Activated 这时可以把SIM卡插入到手机了 ...

一月 20, 2019 · admin

linux-ununtu-Debian9安装最新版Node.js和NPM

Node.js是一个基于Chrome V8 JavaScript引擎构建的平台.Nodejs可用于轻松构建快速,可扩展的网络应用程序。最新版本node.js ppa由其官方网站维护。我们可以将这个PPA添加到Debian 9(Stretch) Debian 8(Jessie)和Debian 7(Wheezy)系统中。这篇我抄来的文章可以帮助你在Debian 9/8/7系统上安装最新的Nodejs和NPM。 添加Node.js PPA 首先,您需要在我们的系统中由Nodejs官方网站提供node.js PPA。如果尚未安装,我们还需要安装python-software-properties软件包。您可以选择安装最新的Node.js版本或LTS版本。 最新版安装命令: curl -sL https://deb.nodesource.com/setup_9.x | sudo bash 安装LTS长期维护版: apt-get install curl python-software-properties curl -sL https://deb.nodesource.com/setup_8.x | bash 安装Node.js和NPM 添加所需的PPA文件后,可以安装Nodejs包。NPM也将与node.js一起安装。该命令还会在您的系统上安装许多其他相关软件包。 apt-get install nodejs 检查Node.js和NPM版本 安装node.js后,验证并检查安装的版本。你可以在node.js 官方网站上找到关于当前版本的更多细节。 检查Node.js版本 node -v 检查npm版本 npm -v 下载 Node.js 源码或预编译安装包 Latest Current Version: 12.11.1 (includes npm 6.11.3)。 从官网 下载 | Node.js 的编译好的二进制文件 wget https://nodejs.org/dist/v12.11.1/node-v12.11.1-linux-x64.tar.xz tar xf node-v12.11.1-linux-x64.tar.xz cp node-v12.11.1-linux-x64/bin/node /usr/local/bin/node cp node-v12.11.1-linux-x64/bin/npm /usr/local/bin/npm cp node-v12.11.1-linux-x64/bin/npx /usr/local/bin/npx rm -rf node-v12.11.1-linux-x64 node -v npm -v 删除卸载 ...

一月 15, 2019 · admin

BaiduPCS-Go上传下载不限速的百度网盘客户端

BaiduPCS-Go项目地址(https://github.com/iikira/BaiduPCS-Go) Android运行BaiduPCS-Go 下载Termux 安装并运行 termux-setup-storage 始终允许Termux获取存储权限 安装方式一: 通过软件源安装 echo "deb [trusted=yes] http://termux.iikira.com stable main" >> /data/data/com.termux/files/usr/etc/apt/sources.list 添加更新软件源 apt update 安装程序 apt install baidupcs-go 安装方式二: 手动安装 apt update && apt upgrade -y wget -O 1.zip https://github.com/iikira/BaiduPCS-Go/releases/download/v3.3.3/BaiduPCS-Go-v3.3.3-android-21-arm64.zip unzip 1.zip && rm 1.zip mv BaiduPCS-Go-v3.3.3-android-21-arm64 BaiduPCS-Go cd ~/BaiduPCS-Go && ./BaiduPCS-Go 按提示完成登陆 BaiduPCS-Go login 配置文件所在的目录为家目录的情况 config set -max_parallel 500 下载最大并发量建议值: 50~500, 太低下载速度提升不明显甚至速度会变为0, 太高可能会导致程序出错被操作系统结束掉 更新程序 apt update apt install baidupcs-go 卸载程序 apt remove baidupcs-go BaiduPCS-Go 百度网盘客户端 仿 Linux shell 文件处理命令的百度网盘命令行客户端. This project was largely inspired by GangZhuo/BaiduPCS ...

一月 13, 2019 · admin

Ubuntu_Debian配置Apache2_PHP配置站点

日常更新 apt-get update -y apt-get upgrade -y 查找程序名 sudo apt-cache search apache | grep 'apache2' 安装Apache2 apt-get install apache2 安装好后开服务 service apache2 start systemctl enable apache2 检查Apache2运行状态 systemctl status apache2 安装Apache的php支持模块 sudo apt-get install libapache2-mod-php 重启Apache2 /etc/init.d/apache2 restart 停止 /etc/init.d/apache2 stop 状态查询 /etc/init.d/apache2 status 在浏览器中输入IP地址,看到以下页面说明apache成功安装 Debian系统上Apache2 Web服务器安装的配置布局如下: /etc/apache2/ |-- apache2.conf | `-- ports.conf |-- mods-enabled | |-- *.load | `-- *.conf |-- conf-enabled | `-- *.conf |-- sites-enabled | `-- *.conf apache2.conf is the main configuration file. It puts the pieces together by including all remaining configuration files when starting up the web server. ports.conf is always included from the main configuration file. It is used to determine the listening ports for incoming connections, and this file can be customized anytime. Configuration files in the mods-enabled/, conf-enabled/ and sites-enabled/ directories contain particular configuration snippets which manage modules, global configuration fragments, or virtual host configurations, respectively. They are activated by symlinking available configuration files from their respective *-available/ counterparts. These should be managed by using our helpers a2enmod, a2dismod, a2ensite, a2dissite, and a2enconf, a2disconf . See their respective man pages for detailed information. The binary is called apache2. Due to the use of environment variables, in the default configuration, apache2 needs to be started/stopped with /etc/init.d/apache2 or apache2ctl. Calling /usr/bin/apache2 directly will not work with the default configuration. Document Roots ...

一月 11, 2019 · admin

Debian9安装最新版Nginx

apt-get默认安装的nginx为1.10,如果嫌太老了可以修改安装源的方式来获得更新的版本; 一、添加Nginx源 新建一个nginx.list文件 vi /etc/apt/sources.list.d/nginx.list 加入以下内容: deb http://nginx.org/packages/mainline/debian/ stretch nginx deb-src http://nginx.org/packages/mainline/debian/ stretch nginx 下面这个我也不晓得干什么的,反正老外是这样写的 wget -qO - http://nginx.org/keys/nginx_signing.key | apt-key add - 更新一下让源生效 apt update 二、安装更新版本nginx 如果之前用apt命令安装了旧版本nginx,需要卸载掉才行 apt remove nginx-common 正式开始安装 apt install nginx 安装完成查看版本: nginx -v 会列出Nginx OpenSSL相关配置文件路径… 查看nginx进程 ps aux | grep nginx pgrep nginx 安装好的文件位置: /usr/sbin/nginx #主程序 /etc/nginx #存放配置文件 /usr/share/nginx #存放静态文件 /var/log/nginx #存放日志 /etc/nginx/nginx.conf #默认nginx配置文件 Nginx控制命令: ###启动 systemctl enable nginx ###重启 systemctl restart nginx ###停止 systemctl stop nginx ###也可以使用 /etc/init.d/nginx start # 启动Nginx服务 /etc/init.d/nginx stop # 停止Nginx服务 /etc/init.d/nginx restart # 重启Nginx服务 增加 Nginx 虚拟主机 检查/etc/nginx/nginx.conf配置文件,确保文件中有:include /etc/nginx/conf.d/*.conf; 默认已经有了的。 ...

十一月 21, 2018 · admin

Nginx使用官方工具Certbot配置申请Let’s Encrypt安全SSL证书详细教程

获取Certbot客户端 apt update apt install openssl nginx certbot -y systemctl enable nginx systemctl start nginx 获取SSL证书 certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com 这个命令会为example.com和www.example.com这两个域名生成一个证书,使用--webroot模式会在/var/www/example站点根目录中创建.well-known文件夹,这个文件夹里面包含了一些验证文件,certbot会通过访问example.com/.well-known/acme-challenge来验证你的域名是否绑定的这个服务器。 SSL证书保存路径 /etc/letsencrypt/live/example.com/fullchain.pem /etc/letsencrypt/live/example.com/privkey.pem 自动更新SSL证书 Let’s Encrypt提供的证书只有90天的有效期,certbot运行 certbot renew 自动检查系统内的证书,并且自动更新这些证书。 我们也可以运行certbot renew --dry-run测试一下 或添加一个cron计划19 4 * * 3 root certbot renew意为每周三的00:19执行定时更新SSL证书计划 获取 Certbot 客户端 wget https://dl.eff.org/certbot-auto chmod a+x ./certbot-auto ./certbot-auto --help 配置 nginx 、验证域名所有权 在虚拟主机配置文件( /etc/nginx/conf.d/xxx.com.conf )中添加如下内容,这一步是为了通过 Let’s Encrypt 的验证,验证 linuxstory.org 这个域名是属于我的管理之下。(具体解释可见下一章“一些补充说明”的“ certbot 的两种工作方式”) location ^~ /.well-known/acme-challenge/ { default_type "text/plain"; root /home/wwwroot/xxx.com/; } location = /.well-known/acme-challenge/ { return 404; } /home/wwwroot/xxx.com/是站点根目录路径 xxx.com替换成自己的域名 ...

十一月 21, 2018 · admin

VMware Workstation单臂路由配置安装openwrt(LEDE)单网卡国际互联网

为什么要配置虚拟机环境 出差时,比如udp2raw等个别软件只能在LINUX环境才能使用,而在WIN环境下就没法例用它。 所需要的软件 VMware Workstation 15 Pro 注册码SN:ZY1MK-4UD80-M81VY-RZYNX-Z22X2 StarWind V2V Converter KoolShare 固件 选择普通的就行,不一定非要虚拟机转盘或PE下写盘专用 使用StarWind V2V-Image Converter转换格式 Image format选择Vmware growable image ![](/images/StarWind V2V-Image Converter-1.png) ![](/images/StarWind V2V-Image Converter-2.png) 配置VMware Workstation 开始新建虚拟机,选择稍后安装操作系统 客户机操作系统选择Linx版本其它Linx 4.X或更高版本内核64位 一路默认完成创建,编辑虚拟机设置 删除打印机(可选),删除原有的硬盘,然后添加硬盘使用现有虚拟磁盘 找到刚才转换好的后缀为.vmdk格式的并使用它。 网络适配器中的网络连接选择桥接模式(B):直接连接物理网络 配置LEDE软路由 配置网络 vi /etc/config/network 这里有2种联网方式 通过上级路由器拨号上网 上级路由器已经设置好了拨号上网。 假设宿主机路由器的网关为10.10.10.1 此时可以删除WAN口(可选),也可以保留。 上图中上级拨号路由器的IP地址为10.10.10.1虚拟机软路由器的IP地址为10.10.10.11 按实际IP修改 IPV4 网关务必一定要设置成上级路由器的IP地址 IPV4 地址必须要跟上级路由器在同一个网段内 DNS可以设置成公共DNS,也可以使用运营商的。 联网后去酪软中心安装科学上网插件并配置好以后 其它设置,包括本机电脑的只要网关设置成10.10.10.11就能享受国际互联网了。 在虚拟机路由器里拨号上网 待完善中… …

十月 28, 2018 · admin

从零开始编译OpenWRT lean软路由固件教程

测试系统:ubuntu18.04 lts x64 如何编译自己需要的OpenWrt固件 Lean大雕的地址: https://github.com/coolsnowwolf/lede 注意: 不要用 root 用户 git 和编译!!! 国内用户编译前最好准备好梯子 默认登陆IP 192.168.1.1, 密码 password 编译命令如下: 首先装好 Ubuntu 64bit,推荐 Ubuntu 14 LTS x64 桌面版本的按CTRL+ALT+T进入终端,更新软件列表,下载安装更新。命令行输入 sudo apt-get update 安装基础环境(占用2GB左右的磁盘) sudo apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint 下载源代码,建立工作目录,进入工作目录 git clone https://github.com/coolsnowwolf/lede cd lede 更新软件包,测试编译环境 ...

八月 26, 2018 · admin

docker创建删除使用容器或镜像

更多容器可以访问docker的Docker Hub 操作系统内核大于等于 3.10 的都可以安装最新版 Docker 查看内核版本 uname -r 安装docker wget -qO- get.docker.com | bash 安装完成后,运行下面的命令,验证是否安装成功。 docker version ...

七月 25, 2018 · admin

Debian和Ubuntu安装最新的MySQL修改密码卸载清理

Debian 9上安装最新的MySQL 在Debian 9中,MySQL项目的社区分支MariaDB被打包为默认的MySQL变体。虽然MariaDB在大多数情况下运行良好,但如果您需要仅在Oracle的MySQL中找到的功能,则可以从MySQL开发人员维护的存储库中安装和使用软件包。 安装MySQL 首先添加MySQL软件库 MySQL开发人员提供了一个.deb包,用于处理配置和安装官方MySQL软件存储库。一旦设置了存储库,我们就可以使用Ubuntu的标准apt命令来安装该软件。我们将使用wget下载此.deb文件,然后使用该dpkg命令进行安装。 首先,在Web浏览器中加载MySQL下载页面。找到右下角的“ 下载”按钮,然后单击下一页。此页面将提示您登录或注册Oracle Web帐户。我们可以跳过这一点,而是寻找说不用的链接,只需启动我的下载。右键单击该链接并选择“ 复制链接地址”(此选项的措辞可能不同,具体取决于您的浏览器)。 现在我们要下载文件了。在您的服务器上,移动到您可以写入的目录。使用wget下载文件,记住粘贴刚刚复制的地址代替下面突出显示的部分: cd /tmp wget https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb 该文件现在应该下载到我们当前的目录中ls列出文件以确保: 您应该看到列出的文件名: mysql-apt-config_0.8.13-1_all.deb 现在我们准备安装: dpkg -i mysql-apt-config* dpkg将会被用于安装,删除和检查.deb软件包。该-i标志表示我们要从指定的文件安装。 在安装过程中,您将看到一个配置屏幕,您可以在其中指定您喜欢的MySQL版本,以及为其他MySQL相关工具安装存储库的选项。默认值将添加最新稳定版MySQL的存储库信息,而不是其他任何内容。这就是我们想要的,所以使用向下箭头导航到Ok菜单选项并点击ENTER。 该包现在将完成添加存储库。刷新apt包缓存以使新软件包可用: dpkg-reconfigure mysql-apt-config apt-get update 添加了存储库并使用我们的软件包缓存进行了新近更新 安装MySQL 我们现在可以使用apt安装最新的MySQL服务器软件包: apt install mysql-server 状态查询 systemctl status mysql 修改MYSQL的初使密码 mysql -u root -p 用安装时设置的密码登陆 use mysql 开始修改密码 update user set authentication_string=password('yournewpassword') where user='root'; 退出 exit 经过我们修改MYSQL的初使密码后,方可以顺利登陆phpMyAdmin管理 用SET PASSWORD命令 mysql -u root mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yournewpassword'); 如果报以下错误提示 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SETPASSWORD = PASSWORD('123456')' at line 1 ...

七月 24, 2018 · admin