- 博客(3)
- 收藏
- 关注
原创 Docker安装nginx
Docker安装nginx启动命令docker run -d -p 80:80 --name nginx-v /root/cy/nginx/www:/usr/share/nginx/html-v /root/cy/nginx/conf/nginx.conf:/etc/nginx/nginx.conf-v /root/cy/nginx/conf/conf.d:/etc/nginx/conf.d-v /root/cy/nginx/logs:/var/log/nginxnginx坑1、启动
2021-04-06 17:36:49 56
原创 指定金额和个数的红包
拼手气红包(二倍均值法)@SneakyThrows public static List<Integer> redPacketGenerator(Integer amount, Integer packetNum) { int min = 1; int max; // 非法参数校验 if (amount <= 0 || packetNum <= 0 || amount < packetNum) {
2021-04-06 15:27:45 420
原创 Docker安装mysql(不推荐在docker安装mysql)
安装安装mysql(最新版本)docker pull mysql安装mysql(指定版本)docker pull mysql:5.7启动docker run -p 3306:3306 --name mysql \-v /root/cy/mysql/conf:/etc/mysql/conf.d \-v /root/cy/mysql/logs:/logs \-v /root/cy/mysql/data:/var/lib/mysql \-e MYSQL_ROOT_PASSWORD=1
2021-04-06 09:35:00 415
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人