Categories
Network

Check If a Server Can Access the Internet with Linux Shell Script

When writing shell scripts, certain functionalities require ensuring that the server’s network can access the internet before proceeding. In such cases, you need a function to check the server’s network status. We can use curl to access www.google.com to determine if the server’s network is functioning properly. How to Check If a Server’s Network Can […]

Categories
Network

Why Can’t You Ping Your Server?

The network ping value, or time value, reflects the time required for the entire process of sending a request from the local machine to the remote server, the remote server receiving the request, and then returning a confirmation signal to the local machine. It is measured in milliseconds (ms). The larger the time value, the […]

Categories
Network

Server Have a Network Connection But Cannot Access the Internet

Have you ever encountered a situation where a server has a network connection but cannot access the internet or open web pages? I have faced this issue before, and after troubleshooting, I found that changing the DNS settings resolved the problem. Today, I will share the general causes and solutions for this issue, hoping to […]

Categories
AWS

How to Fix AWS EC2 Instances Can’t Ping Each Other?

When I deployed my nginx on an EC2 instance, I subsequently applied for a new EC2 instance to deploy an application (assuming the internal IP of the server hosting nginx is 172.16.100.1, and the new application server's internal IP is 172.16.100.2). After deploying my application on the new instance and configuring nginx to forward interfaces, […]

Categories
AWS

How to Run Python Scripts in AWS?

1. AWS Python Environment 1. AWS APIs Everything in AWS is an API call, and each AWS service has its own set of APIs to interact with. 2. AWS Command Line Interface The AWS Command Line Interface (AWS CLI) is an open-source tool that allows you to interact with AWS services using commands in your […]

Categories
AWS

AWS 101 | A Comprehensive Guide for Beginner

1. How to Build an AWS Application? 1. Set up using a private network with Amazon VPC 2. Place backend code on Amazon EC2 Instance (virtual machines, etc.) 3. Store data in databases like Amazon RDS or Amazon DynamoDB 4. Store image data in Amazon S3 5. Use Amazon CloudWatch for monitoring 6. To ensure […]