Category: Devops & others
-
Git command for pulling source code of all git projects in a folder (parent)
Git command for pulling source code of all git projects in a folder (parent) ls | xargs -P10 -I{} git -C {} pull ls: liệt…
-
Kill multiple processes – one line command
> for pid in $(ps -aux | grep 'java' | awk {'print $2'}); do sudo kill -9 $pid; done
-
Ubuntu Crontab (Cron job)
#1. list all current cron jobs > sudo crontab -l #2. edit crontab > sudo crontab -e #3. cronjob format * * * * *…
-
Search large files in Linux
#!/bin/bash if [[ $1 == '' ]]; then echo 'missing directory' exit fi du -a $1 | sort -n -r | head -n 20
-
AWS EC2 AMI LINUX 2 – Setup Docker, Docker Compose for EC2-User
INSTALL DOCKER AND GRANT EC2-USER sudo yum update -y sudo yum install docker -y sudo service docker start sudo usermod -a -G docker ec2-user Restart…
-
Some Centos 7 network utilities
Change default outgoing IP sudo ip route change default via 115.79.24.89 List all network interfaces ip a s ip link show ip addr Open route…
-
WebSocket connection failed: Error during WebSocket handshake: Unexpected response code: 400
NGINX configuration Apache HTTPD configuration
-
Cài Đặt MongoDB Community version trên CentOS
MongoDB is a leading NoSQL database commonly used in modern web applications. This tutorial will walk you through setting up MongoDB on Red Hat Enterprise…
-
Set up VisualVM to monitor resources of remote Java Spring Service
This post arms to introduce how to configure the VisualVM