Classified directory archiving: Windows

Windows 10 Professional Activation Method

Find and open: Start - Windows System - Right click Command Prompt - Click More - Select Run as Administrator Enter the following command in the pop-up command box;

 C:\>slmgr.vbs /upk The pop-up window prompts: "The product key has been successfully uninstalled" C:\>slmgr /ipk W269N-WFGWX-YVC9B-4J6C9-T83GX The pop-up window prompts: "Successfully installed the product key" C:\>slmgr /skms zh.us.to A pop-up window prompts: "The key management service computer name is successfully set to zh.us.to" C:\>slmgr /ato The pop-up window prompts: "Successfully activated the product"

Finally, check the "My Computer" and "Properties" display: "Windows Professional" Activated ”。

Hyper-V virtual host Linux Centos 7 data disk expansion

All the time Hyper-V Linux Disk expansion of virtual host is troublesome. Today we will introduce how to use fdisk and resize2fs Data disk capacity expansion.

Description:

Host system: Windows Server 2012 R2 Hyper-V
Virtual host: CentOS Linux release 7.4.1708 (Core)

Usual contact Hyper-V More, so disk expansion is common. Windwos Disk expansion is the simplest. This article will not cover it.
Today I will Centos The virtual host performs the demonstration. The small machine is divided into two disks (both independent disks), and one is the system disk /dev/sda , the other is the database disk /dev/sdb The current requirement is that SDB should change from the original 30GB Expand to 100GB

1. Check the disk partition and mounting status before capacity expansion

 [ root@renwole-com  ~]# fdisk -l Disk /dev/sdb: 32.2 GB, 32212254720 bytes, 62914560 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x5f149419 Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2048    62914559    31456256   83   Linux Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x00043041 Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048     2099199     1048576   83   Linux /dev/sda2         2099200    20971519     9436160   8e   Linux LVM Disk /dev/mapper/cl-root: 8585 MB, 8585740288 bytes, 16769024 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mapper/cl-swap: 1073 MB, 1073741824 bytes, 2097152 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
 [ root@renwole-com  ~]# df -hT Filesystem          Type      Size  Used Avail Use% Mounted on /dev/mapper/cl-root xfs       8.0G  950M  7.1G  12% / devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm tmpfs               tmpfs     1.9G  8.3M  1.9G   1% /run tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup /dev/sda1            xfs      1014M  138M  877M  14% /boot tmpfs               tmpfs     379M     0  379M   0% /run/user/0 /dev/sdb1            ext4       30G   60M   28G   1% /apps

Note: orange part /dev/sdb1 Partition size is 30GB , which is also attached 30GB

2. Unload and mount

delete /etc/fstab The following boot disk auto mount information in the file:

/dev/sdb1 /apps ext4 defaults 0 0

3. Start virtual host disk expansion

Hyper-V virtual machine operations:

open Hyper-V Manager, find the small machine that needs to be expanded and shut down, then right-click Settings, click the disk that needs to be expanded, (usually the data disk) Edit - Next by default - Select Next by extension, this step needs attention, assuming that your original disk is 30G , then you want to expand to 100G , please fill in one hundred Click Next to finish. Then start the virtual host.

View the disk partitions after capacity expansion:

 [ root@renwole-com  ~]# fdisk -l Disk /dev/sda: 10.7 GB, 10737418240 bytes, 20971520 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x00043041 Device Boot      Start         End      Blocks   Id  System /dev/sda1   *        2048     2099199     1048576   83   Linux /dev/sda2         2099200    20971519     9436160   8e   Linux LVM Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x5f149419 Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2048    62914559    31456256   83   Linux Disk /dev/mapper/cl-root: 8585 MB, 8585740288 bytes, 16769024 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mapper/cl-swap: 1073 MB, 1073741824 bytes, 2097152 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes

sdb The partition size is changed from the original 30GB Expand to 100GB , but partition sdb1 No capacity expansion is used 70GB What about space?

4. Delete partition

Delete different partitions, delete data, delete partitions and rebuild them:

 [ root@renwole-com  ~]# fdisk /dev/sdb The device presents a logical sector size that is smaller than the physical sector size. Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted. Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): d #Delete sdb1 partition Selected partition 1 Partition 1 is deleted Command (m for help): n #New Section Partition type: p   primary (0 primary, 0 extended, 4 free) e   extended Select (default p): p Partition number (1-4,  default 1): one #Specify partition code First sector (2048-209715199,  default 2048): Using default value 2048 Last sector, +sectors or +size{K, M,G} (2048-209715199,  default 209715199): Using default value 209715199 Partition 1 of type Linux and of size 100 GiB is set Command (m for help): w #Enter w to save The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.

Check the disk partition again

 [ root@renwole-com  ~]# fdisk -l ... Disk /dev/sdb: 107.4 GB, 107374182400 bytes, 209715200 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk label type: dos Disk identifier: 0x5f149419 Device Boot      Start         End      Blocks   Id  System /dev/sdb1            2048   209715199   104856576   83   Linux ...

Has changed from the original 30G Expand to 100G However, it can't be used yet. The following operations are required to ensure successful capacity expansion:

 [ root@renwole-com  ~]# resize2fs -f /dev/sdb1 resize2fs 1.42.9 (28-Dec-2013) Resizing the filesystem on /dev/sdb1 to 26214144 (4k) blocks. The filesystem on /dev/sdb1 is now 26214144 blocks long.

Capacity expansion succeeded.

5. Attach the disk

 [ root@renwole-com  ~]# mount /dev/sdb1 /apps/ [ root@renwole-com  ~]# df -hT Filesystem          Type      Size  Used Avail Use% Mounted on /dev/mapper/cl-root xfs       8.0G  950M  7.1G  12% / devtmpfs            devtmpfs  1.9G     0  1.9G   0% /dev tmpfs               tmpfs     1.9G     0  1.9G   0% /dev/shm tmpfs               tmpfs     1.9G  8.3M  1.9G   1% /run tmpfs               tmpfs     1.9G     0  1.9G   0% /sys/fs/cgroup /dev/sda1            xfs      1014M  138M  877M  14% /boot tmpfs               tmpfs     379M     0  379M   0% /run/user/0 /dev/sdb1            ext4       99G   60M   94G   1% /apps [ root@renwole-com  ~]# ls /apps/ web  mysql

As shown above, The data disk of the Linux virtual host has been successfully expanded. Check that the data is not lost.

In addition, write your disk information to /etc/fstab File, otherwise the disk needs to be manually mounted after reboot.

Note: In the same sentence, before operating any data, you must first back it up to form a good habit to prevent data loss.

Using Baidu Online Disk to Download Large Files Directly

Introduction:

Baidu Online Disk Direct Download Assistant is a browser user script( user scripts )In the case of no login and no client, directly download the large files shared by Baidu online disk and Baidu online disk, and avoid calling Baidu online disk client when downloading files to obtain the direct download address of online disk files.

This script is not only limited to the above features, but also not limited to speed. It is very easy to use.

1. Install a user script manager

use Tampermonkey (Oil Monkey) script, you need to install an extension in the browser and then install the script to support the following browsers:

Chrome Microsoft Edge、Safari Firefox Opera Next Dolphin Browser UC Browser

Installation method:

open Tampermonkey Select the matching browser on the official website and click Download and Install:

 //tampermonkey.net/

2. Install Baidu online disk to download assistant script directly

Open the following connection to install this script:

 //greasyfork.org/zh-CN/scripts/39504-%E7%99%BE%E5%BA%A6%E7%BD%91%E7%9B%98%E7%9B%B4%E6%8E%A5%E4%B8%8B%E8%BD%BD%E5%8A%A9%E6%89%8B-%E7%9B%B4%E9%93%BE%E5%8A%A0%E9%80%9F%E7%89%88

After the installation is completed, re open the link address to download in Baidu online disk, or refresh the address. At this time, you should see a Download Assistant The mouse will display Direct download & Show Connections If you use Xunlei Download, copy the download connection and create a new download task in Xunlei.

If Baidu Online Disk Direct Download Assistant cannot be used, please open //greasyfork.org On the website, the search keyword Baidu online disk will list multiple scripts, and you can install scripts as needed. If you can't, try a few more, and there will always be one suitable for you.

Web page batch opening tool (OpenPage) practical free version

Usage: After decompression, it contains "123. vbs", "Batch Open Web Page. htm", "Batch Open Web Page Tool (OpenPage) V6.0. exe". The first is to export all site domain names in iis to txt text format, the second is to open the web version, and the third is to install and use it first.

Batch station check: Click here download

Recommended: DiskGenius Pro 4.7.2 64 Professional Green Large File Recovery

The software has been tested in detail, and can recover a single file size of more than 100G (test file format type VHDX). Some versions can only recover files of 1G size, so share good things with you, The DiskGenius Pro software package has no virus problems after 360 antivirus and cloud search. If you are not sure, you can use the professional web version to scan. The address is://virscan. org/. This software can only run under Windows, including 32&64 bits.

If there is any suspected infringement or illegal content, please leave a message below so that we can deal with it in a timely manner.

Windows&Linux System Development and Test Environment Integration Software Package

The UPUPW green installation free environment package currently runs on the Windows platform and supports Apache, Nginx and Kangle, with cmd command line management interface, are good virtual host management systems under Windows.

Details://www.upupw.net

LNMT integrated environment installation package, which is written in Linux shell, can only be run under CentOS/RedHat system at present, and supports Nginx MariaDB、Tomcat, Common basic cache components. It is a pity that the environment installation package does not support Apache.

Details://lnmt.org/

Anmpserver is completely open source; It is also a cross platform development and test environment software package, which is not only free, but also green version, decompression and use. Support platforms include Windows Linux、OS X。 The environment package supports Apache Nginx、MySQL、PHP、 It also integrates the WEB suite, which is a great weapon for newcomers.

Details://www.anmpserver.com/

As we all know, wdcp is a set of php virtual host management system, which not only supports Apche Nginx、MySQL, It also supports php Apache&Nginx multi version coexistence and SSL. All cloud markets have images of the system. At present, the latest version of wdcp is V3. Unfortunately, the windwos platform is not supported.

Details://www.wdlinux.cn

Phpstudy is a program integration package for PHP debugging environment, which integrates the latest Apache PHP、MySQL、phpMyAdmin、ZendOptimizer, Users can use it without configuration after installation. For PHP novices, using php studio to configure the Windows environment can save time and effort. However, Linux platform is not supported.

Details://www.phpstudy.net/

XAMPP is a completely free and easy to install environment software package, including MariaDB PHP and Perl. The XAMPP open source package can be customized for any modification. XAMPP also supports cross platform operations. It is also an old brand for many years and is recommended.

Details://www.apachefriends.org/

WampServer is an integrated installation environment platform. Support Apache PHP, MySQL database.

Details://www.wampserver.com/

The LNMP one click installation package is written in Linux shell, and can be installed in CentOS/RadHat/Fedora Install LNMP (Nginx/MySQL/PHP) LNMPA(Nginx/MySQL/PHP/Apache)、 LAMP(Apache/MySQL/PHP)。 It can be directly used in the production environment. If you use a Linux system, I suggest you use it.

Details://lnmp.org/

Oneinstack is a rising star, which can quickly deploy lnmp/amp/lnmpa/lnmt (Linux Nginx/Engine, MySQL/MariaDB/Percona, PHP, Apache, Tomcat) are applicable to CentOS 5~7 (including redhat) 32-bit and 64 bit of Debian 6-8 and Ubuntu 12-15 are recommended.

Details://oneinstack.com/

PHPWAMP is a pure green PHP integrated environment running on the Windows platform. This environment is similar to WampServer and supports multi version switching of PHP.

Details://www.phpwamp.com/