Redis 官方推荐使用Redisson实现分布式锁

 
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.TimeUnit;
import org.redisson.Redisson;
import org.redisson.api.RLock;
import org.redisson.api.RedissonClient;
import org.redisson.config.Config;public class RedissonLockTest {static int fixNum=5;public static void main(String []args) throws InterruptedException {CountDownLatch latch = new CountDownLatch(fixNum);// 默认连接 127.0.0.1:6379RedissonClient redisson = Redisson.create();ExecutorService exec = Executors.newFixedThreadPool(fixNum);for(int i=0;i<fixNum;i++){exec.submit(new TestLock("CLIENT-"+i,redisson,latch));}exec.shutdown();latch.await();System.out.println("所有任务执行完毕!");}}class TestLock implements Runnable{private String name;private RedissonClient redisson;private CountDownLatch latch;@Overridepublic void run() {RLock lock = redisson.getLock("TestLock");try{System.out.println("***************"+this.name+"*************等待获取锁");if(lock.tryLock(300,30, TimeUnit.MILLISECONDS)){try{System.out.println("******************"+this.name+"************获得锁开始处理*********");System.out.println("*************"+this.name+"*********** 数据 **************************");Thread.sleep(2*100);System.out.println("******************"+this.name+"锁使用完毕*****");latch.countDown();}finally {lock.unlock();System.out.println("*************"+this.name+"释放锁*************");}}} catch (InterruptedException e) {e.printStackTrace();}}public TestLock(String name, RedissonClient redisson, CountDownLatch latch){this.name=name;this.redisson=redisson;this.latch=latch;}}

执行结果:

14:55:22.874 [redisson-netty-1-4] INFO org.redisson.connection.pool.MasterConnectionPool - 5 connections initialized for /39.107.107.185:6379
14:55:22.874 [redisson-netty-1-7] INFO org.redisson.connection.pool.SinglePubSubConnectionPool - 1 connections initialized for /39.107.107.185:6379
***************CLIENT-2*************等待获取锁
***************CLIENT-1*************等待获取锁
***************CLIENT-0*************等待获取锁
***************CLIENT-4*************等待获取锁
***************CLIENT-3*************等待获取锁
14:55:22.893 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.895 [pool-2-thread-1] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:24] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.895 [pool-2-thread-2] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.895 [pool-2-thread-5] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.895 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.899 [redisson-netty-1-2] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@2003486257 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x62642011, L:/192.168.100.47:59766 - R:/39.107.107.185:6379]]
14:55:22.900 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:24] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
******************CLIENT-0************获得锁开始处理*********
*************CLIENT-0*********** 数据 **************************
14:55:22.901 [redisson-netty-1-3] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1698707786 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x35892539, L:/192.168.100.47:59764 - R:/39.107.107.185:6379]]
14:55:22.901 [redisson-netty-1-6] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@293076392 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26082049, L:/192.168.100.47:59763 - R:/39.107.107.185:6379]]
14:55:22.901 [redisson-netty-1-5] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@662583616 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x46e9e148, L:/192.168.100.47:59762 - R:/39.107.107.185:6379]]
14:55:22.913 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.914 [pool-2-thread-5] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.916 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.919 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
14:55:22.920 [redisson-netty-1-2] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@2003486257 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x62642011, L:/192.168.100.47:59766 - R:/39.107.107.185:6379]]
14:55:22.921 [pool-2-thread-2] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.924 [redisson-netty-1-3] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1698707786 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x35892539, L:/192.168.100.47:59764 - R:/39.107.107.185:6379]]
14:55:22.927 [redisson-netty-1-5] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@662583616 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x46e9e148, L:/192.168.100.47:59762 - R:/39.107.107.185:6379]]
14:55:22.932 [pool-2-thread-2] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.932 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.934 [pool-2-thread-5] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.934 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.937 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
******************CLIENT-1************获得锁开始处理*********
*************CLIENT-1*********** 数据 **************************
14:55:22.938 [redisson-netty-1-6] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@293076392 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26082049, L:/192.168.100.47:59763 - R:/39.107.107.185:6379]]
14:55:22.939 [redisson-netty-1-2] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@2003486257 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x62642011, L:/192.168.100.47:59766 - R:/39.107.107.185:6379]]
14:55:22.940 [redisson-netty-1-3] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1698707786 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x35892539, L:/192.168.100.47:59764 - R:/39.107.107.185:6379]]
14:55:22.969 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.969 [pool-2-thread-5] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.970 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:22.978 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
14:55:22.978 [redisson-netty-1-5] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@662583616 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x46e9e148, L:/192.168.100.47:59762 - R:/39.107.107.185:6379]]
******************CLIENT-4************获得锁开始处理*********
*************CLIENT-4*********** 数据 **************************
14:55:22.978 [redisson-netty-1-6] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@293076392 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26082049, L:/192.168.100.47:59763 - R:/39.107.107.185:6379]]
14:55:23.009 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.009 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.018 [redisson-netty-1-2] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@2003486257 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x62642011, L:/192.168.100.47:59766 - R:/39.107.107.185:6379]]
******************CLIENT-3************获得锁开始处理*********
*************CLIENT-3*********** 数据 **************************
14:55:23.018 [redisson-netty-1-3] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1698707786 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x35892539, L:/192.168.100.47:59764 - R:/39.107.107.185:6379]]
14:55:23.050 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.057 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('hset', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; if (redis.call('hexists', KEYS[1], ARGV[2]) == 1) then redis.call('hincrby', KEYS[1], ARGV[2], 1); redis.call('pexpire', KEYS[1], ARGV[1]); return nil; end; return redis.call('pttl', KEYS[1]);, 1, TestLock, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
******************CLIENT-2************获得锁开始处理*********
*************CLIENT-2*********** 数据 **************************
******************CLIENT-0锁使用完毕*****
14:55:23.102 [pool-2-thread-1] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:24] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
******************CLIENT-1锁使用完毕*****
14:55:23.138 [pool-2-thread-2] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.141 [redisson-netty-1-5] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:24] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@662583616 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x46e9e148, L:/192.168.100.47:59762 - R:/39.107.107.185:6379]]
*************CLIENT-0释放锁*************
******************CLIENT-4锁使用完毕*****
14:55:23.178 [pool-2-thread-5] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.184 [redisson-netty-1-6] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:25] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@293076392 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26082049, L:/192.168.100.47:59763 - R:/39.107.107.185:6379]]
*************CLIENT-1释放锁*************
******************CLIENT-3锁使用完毕*****
14:55:23.219 [pool-2-thread-4] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.221 [redisson-netty-1-2] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:28] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@2003486257 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x62642011, L:/192.168.100.47:59766 - R:/39.107.107.185:6379]]
*************CLIENT-4释放锁*************
******************CLIENT-2锁使用完毕*****
所有任务执行完毕!
14:55:23.260 [pool-2-thread-3] DEBUG org.redisson.command.CommandAsyncService - aquired connection for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using node /39.107.107.185:6379
14:55:23.265 [redisson-netty-1-3] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:27] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1698707786 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x35892539, L:/192.168.100.47:59764 - R:/39.107.107.185:6379]]
*************CLIENT-3释放锁*************
14:55:23.304 [redisson-netty-1-4] DEBUG org.redisson.command.CommandAsyncService - connection released for command (EVAL) and params [if (redis.call('exists', KEYS[1]) == 0) then redis.call('publish', KEYS[2], ARGV[1]); return 1; end;if (redis.call('hexists', KEYS[1], ARGV[3]) == 0) then return nil;end; local counter = redis.call('hincrby', KEYS[1], ARGV[3], -1); if (counter > 0) then redis.call('pexpire', KEYS[1], ARGV[2]); return 0; else redis.call('del', KEYS[1]); redis.call('publish', KEYS[2], ARGV[1]); return 1; end; return nil;, 2, TestLock, redisson_lock__channel:{TestLock}, 0, 30, a78ae226-8e0e-4872-a829-fc77336d55e6:26] from slot NodeSource [slot=null, addr=null, redirect=null] using connection RedisConnection@1314792434 [redisClient=[addr=/39.107.107.185:6379], channel=[id: 0x26147cfc, L:/192.168.100.47:59767 - R:/39.107.107.185:6379]]
*************CLIENT-2释放锁*************

 

咸鱼(。・∀・)ノ゙嗨
发布了91 篇原创文章 · 获赞 169 · 访问量 4万+
私信关注
查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 让嵌入式工程师毛骨悚然的掉电丢数据事故可以这样解决!

    Nand-Flash/eMMC(带有Flash控制器的Nand-Flash)作为一种非线性宏单元模式存储器,为固态大容量存储的实现提供了廉价有效的解决方案。Nand-Flash存储器具有容量大,改写速度快等优点,适用于大量数据的存储,因而越来越广泛地应用在如嵌入式产品、智能手机、云端存储资料库等业…...

    2024/3/29 10:23:00
  2. python中对文件、文件夹,目录的基本操作

    文章目录一、python中对文件、文件夹操作时经常用到的os模块和shutil模块常用方法。二、文件操作方法大全:三、目录操作方法大全四、文件综合操作实例 一、python中对文件、文件夹操作时经常用到的os模块和shutil模块常用方法。 1.得到当前工作目录,即当前Python脚本工作的目…...

    2024/3/29 10:22:59
  3. 微服务-4-Eureka服务注册与发现

    Eureka服务注册与发现 1.Eureka是什么? Eureka是Netflix的一个子模块,也是核心模块之一。Eureka是一个基于REST的服务,用于定位服务,以实现云端中间层服务发现和故障转移。服务注册与发现对于微服务架构来说是非常重要的,有了服务发现与注册,只需要使用服务的标识符,就可…...

    2024/3/29 10:22:59
  4. CV好难

    这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是…...

    2024/3/29 10:22:59
  5. 负载均衡之lvs

    1.负载均衡 VS 反向代理区别 1.1 功能(原理)负载均衡 lvs 请求做转发 反向代理 Nginx Haproxy 代替(代理)用户去请求 ,得到响应再反回给用户1.2 4层与7层7层协议应用层 协议: http https表示层会话层传输层 tcp/udp 端口网络层 IP地址数据链路层**** MAC地址物理层 010101001…...

    2024/3/29 10:22:56
  6. 基于MySQL 5.7多源复制及Keepalived搭建三节点高可用架构

    导读本内容摘自知数堂第35期公开课《MySQL 5.7 高可用新玩法》本次公开课视频请访问 http://pan.baidu.com/s/1mia6MZu知数堂公开课相关视频请访问 https://ke.qq.com/course/172600基本环境准备 使用Centos 6.X 64位系统 MySQL 使用 MySQL-5.7.17-x86_64 版本,去官方下载my…...

    2024/3/29 10:22:56
  7. 关于ubifs在断电时丢失数据的处理方法

    关于ubifs在断电时丢失数据的处理方法 首先要说的是,文件系统在掉电的时候肯定是有几率丢失数据,因为断电可以在任何情况下发生,如果有数据在内存个中来不及写入,那么内存中的数据就丢失了,而且nand上的未写完的数据,可能因为文件对应的信息没有更新,造成重启后文件系统…...

    2024/3/28 22:06:00
  8. 新加坡MAS三大类型支付牌照的分类?

    新加坡金融管理局(MAS)是新加坡中央银行,成立于1971年,由政府部门执行并专业管理,其职能组合了银行至财经等诸多金融机能,包括制订金融和货币方面的政策、保证经济稳定发展、促进可持续发展的金融服务产业等。 MAS还是一家综合监管机构。新加坡金管局颁发的牌照名为CMS,…...

    2024/3/29 10:22:55
  9. PowerDesigner怎样才能在修改表的字段Name的时候Code不自动跟着变

    tools-> General Options-> Dialog:Operation Modes: 去掉 NameToCodeMirroring 前面的√PowerDesigner快捷键【转】一般快捷键快捷键说明F4打开检查模型窗口,检查模型F5如果图窗口内的图改变过大小,恢复为原有大小即正常大小F6放大图窗口内的图F7缩小图窗口内的…...

    2024/3/29 10:22:52
  10. REN 重命名文件

    点赞收藏分享文章举报竹子CN发布了271 篇原创文章 获赞 91 访问量 53万+他的留言板关注...

    2024/3/29 10:22:51
  11. 蓝桥杯练习——序列求和(知识点:使用等差数列)

    问题描述 求1+2+3+…+n的值。 输入格式 输入包括一个整数n。 输出格式 输出一行,包括一个整数,表示1+2+3+…+n的值。 样例输入 4 样例输出 10 样例输入 100 说明:有一些试题会给出多组样例输入输出以帮助你更好的做题。 一般在提交之前所有这些样例都需要测试通过才行,但这…...

    2024/3/29 10:22:50
  12. Mysql中的关联查询(内连接,外连接,自连接)

    Mysql中的关联查询(内连接,外连接,自连接) 在使用数据库查询语句时,单表的查询有时候不能满足项目的业务需求,在项目开发过程中,有很多需求都是要涉及到多表的连接查询,总结一下mysql中的多表关联查询 一,内连接查询 是指所有查询出的结果都是能够在连接的表中有对应记录…...

    2024/3/29 10:22:50
  13. 设置Linux打开文件句柄/proc/sys/fs/file-max和ulimit -n的区别

    max-file 表示系统级别的能够打开的文件句柄的数量。是对整个系统的限制,并不是针对用户的。 ulimit -n 控制进程级别能够打开的文件句柄的数量。提供对shell及其启动的进程的可用文件句柄的控制。这是进程级别的。对于服务器来说,file-max和ulimit都需要设置,否则会出现文件…...

    2024/3/29 10:22:48
  14. 实现报表数据预先计算

    报表应用中,如果数据量较大或计算过程较复杂,往往会导致报表数据源准备过慢,从而影响报表性能。这种情况下可以预先计算报表需要的数据,在呈现时直接引用,使得用户在访问报表时可以迅速地获得响应。一、当前的手段及弊端由于报表在访问时常常需要参数,因此显然不可能把所…...

    2024/3/29 5:13:16
  15. MySQL分页查询优化

    当需要从数据库查询的表有上万条记录的时候,一次性查询所有结果会变得很慢,特别是随着数据量的增加特别明显,这时需要使用分页查询。对于数据库分页查询,也有很多种方法和优化的点。下面简单说一下我知道的一些方法。 准备工作 为了对下面列举的一些优化进行测试,下面针对…...

    2024/3/29 10:10:31
  16. SQL---计算两个日期之间的时间差

    在进行日期处理的时候,有时会需要计算一下两个日期之间相差几年零几个月,这里记录一下,如何用mysql数据库和java结合,准确的拿到两个日期之间的时间差。1.mysql数据库中,利用TIMESTAMPDIFF函数,拿到两个日期之间相差的月数,当然,也可以拿到天数,年数,如下:SELECT TI…...

    2024/3/29 10:10:30
  17. 框架day13-分布式RPC框架Apache Dubbo

    分布式RPC框架Apache Dubbo 1. 软件架构的演进过程 软件架构的发展经历了由单体架构、垂直架构、SOA架构到微服务架构的演进过程,下面我们分别了解一下这几个架构。 1.1 单体架构架构说明: ​ 全部功能集中在一个项目内(All in one)。 架构优点: ​ 架构简单,前…...

    2024/3/29 10:10:28
  18. VS Code的常用快捷键

    一、vs code 的常用快捷键1、注释:a) 单行注释:[ctrl+k,ctrl+c] 或 ctrl+/b) 取消单行注释:[ctrl+k,ctrl+u] (按下ctrl不放,再按k + u)c) 多行注释:[alt+shift+A]d) 多行注释:/**2、移动行:alt+up/down3、显示/隐藏左侧目录栏 ctrl + b4、复制当前行:shift + alt +up/d…...

    2024/3/29 10:22:48
  19. git 更新代码到本地

    正规流程git status(查看本地分支文件信息,确保更新时不产生冲突) git checkout – [file name] (若文件有修改,可以还原到最初状态; 若文件需要更新到服务器上,应该先merge到服务器,再更新到本地) git branch(查看当前分支情况) git checkout remote branch (若分…...

    2024/3/28 22:06:14
  20. 打家劫舍III

    在上次打劫完一条街道之后和一圈房屋后,小偷又发现了一个新的可行窃的地区。这个地区只有一个入口,我们称之为“根”。 除了“根”之外,每栋房子有且只有一个“父“房子与之相连。一番侦察之后,聪明的小偷意识到“这个地方的所有房屋的排列类似于一棵二叉树”。 如果两个直…...

    2024/3/29 10:22:45

最新文章

  1. 数据结构刷题篇 之 【力扣二叉树基础OJ】详细讲解(含每道题链接及递归图解)

    有没有一起拼用银行卡的&#xff0c;取钱的时候我用&#xff0c;存钱的时候你用 1、相同的树 难度等级&#xff1a;⭐ 直达链接&#xff1a;相同的树 2、单值二叉树 难度等级&#xff1a;⭐ 直达链接&#xff1a;单值二叉树 3、对称二叉树 难度等级&#xff1a;⭐⭐ 直达…...

    2024/3/29 21:40:48
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. InstructGPT的流程介绍

    1. Step1&#xff1a;SFT&#xff0c;Supervised Fine-Tuning&#xff0c;有监督微调。顾名思义&#xff0c;它是在有监督&#xff08;有标注&#xff09;数据上微调训练得到的。这里的监督数据其实就是输入Prompt&#xff0c;输出相应的回复&#xff0c;只不过这里的回复是人工…...

    2024/3/29 10:51:39
  4. Java学习笔记01

    1.1 Java简介 Java的前身是Oak&#xff0c;詹姆斯高斯林是java之父。 1.2 Java体系 Java是一种与平台无关的语言&#xff0c;其源代码可以被编译成一种结构中立的中间文件&#xff08;.class&#xff0c;字节码文件&#xff09;于Java虚拟机上运行。 1.2.3 专有名词 JDK提…...

    2024/3/28 21:43:28
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/3/29 18:08:39
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/3/29 18:08:34
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/3/29 2:45:46
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/3/29 16:26:39
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/3/29 5:19:52
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/3/29 18:08:00
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/3/29 11:11:56
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/3/29 1:13:26
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/3/29 8:28:16
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/3/29 7:41:19
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/3/29 18:07:15
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/3/29 9:57:23
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/3/29 0:49:46
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/3/29 18:06:57
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/3/29 17:27:19
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/3/29 18:06:36
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/3/29 18:06:22
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/3/28 18:26:34
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/3/29 18:06:01
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/3/28 20:09:10
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57