sudo lsof -i :3000
kill -9 <PID>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<excludes>
<exclude>
<groupId>org.projectlombok</groupId>1- Create the directory
mkdir -p /etc/systemd/system/docker.service.d
2- Create the file
vim /etc/systemd/system/docker.service.d/http-proxy.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db = db.getSiblingDB('dbname'); | |
| insertBulk = function() { | |
| var bulk = db.books.initializeUnorderedBulkOp(); // or we can use db.books.initializeOrderedBulkOp(); | |
| for(loop=0;loop<1000;loop++) { | |
| bulk.insert({name: "Moon"}); | |
| } | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| db = db.getSiblingDB('dilmachi'); | |
| insertBulk = function() { | |
| var bulk = db.books.initializeOrderedBulkOp(); | |
| bulk.find({name: 'Moon'}).update({$set: {price: 300}}); | |
| bulk.execute(); | |
| } | |
| insertBulk(); |
OlderNewer