Support > About cloud server > How to quickly build a development environment on a US cloud server
How to quickly build a development environment on a US cloud server
Time : 2025-08-19 15:06:00
Edit : Jtti

How can you quickly set up a development environment on a US cloud server? Many beginners and small and medium-sized enterprises face the challenge of quickly setting up a fully operational development environment after successfully purchasing a US cloud server. From system initialization to tool installation and configuration of common development frameworks, this process actually follows a relatively efficient set of steps that can help developers avoid unnecessary complications and common environment configuration issues.

First, you need to initialize the US cloud server's system. Most cloud providers offer a variety of operating system options when provisioning their servers, with popular options including CentOS, Debian, and Ubuntu. For first-time users, it's recommended to choose the Ubuntu LTS version, which offers comprehensive community documentation and strong software support, making it easier to find solutions to any problems. Immediately after receiving the server, change the default login password and create a new user via SSH to avoid long-term use of the root account to reduce security risks. Also, enable a firewall, such as ufw or firewalld, and close unnecessary ports, leaving only essential ports open, such as SSH, HTTP, and HTTPS, to ensure a secure and controllable environment from the very beginning.

After completing system initialization, you can begin setting up your development environment. Different projects have different environmental requirements, but common foundational components are essential, including programming language runtimes, databases, and version management tools. For common web development, for example, servers often need to support environments like Node.js, Python, or Java. These can be quickly installed using a package manager, such as running:

sudo apt update && sudo apt install -y nodejs npm python3 python3-pip openjdk-17-jdk git in Ubuntu

This provides both a common language environment and Git version control. For databases, choose MySQL, PostgreSQL, or MongoDB based on project requirements. For MySQL, simply run:

sudo apt install -y mysql-server

After installation, configure the root password and remote access permissions using the mysql_secure_installation command, and you're ready to go. For development teams seeking a lightweight database, SQLite can also be considered; it requires minimal configuration and is particularly suitable for small-scale development and testing.

Another key component of a development environment is the integrated development toolchain. When developing on the server side, many teams choose to write code locally and then push it to the server via a Git repository for building and testing. Therefore, configuring CI/CD tools on the cloud server is essential. First, install Docker and Docker Compose to quickly deploy the necessary development services through containerization. For example, run:

sudo apt install -y docker.io docker-compose

After installation, developers can quickly deploy the database, cache, and web framework by creating a docker-compose.yml file, achieving a unified environment configuration. The advantage of containerization is that it ensures consistent environmentslocal development and cloud deployment are virtually identical, avoiding the common "it works on my computer" issue.

Network and dependency optimization are also crucial for quickly setting up a development environment. Due to latency between US cloud servers and domestic access, installing dependencies or downloading images can often be slow. In this case, you can configure your image source specifically. For example, in Python development, you can change pip's default source to a faster alternative. In ~/.pip/pip.conf, write:

[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple

This will significantly speed up dependency installation. Similarly, Node.js download speeds can be improved by setting an npm mirror repository.

In addition to the language environment and dependencies, team collaboration tools are also essential to the development environment. US cloud servers are often used as a hub for remote collaboration, so you can deploy code hosting platforms such as Gitea or GitLab on these servers. Gitea is relatively lightweight and requires minimal resources, making it ideal for small teams. To run the service, simply start Docker to deploy it:

docker run -d --name=gitea -p 3000:3000 gitea/gitea:latest

Once configured, team members can directly access the server IP address through their browsers for code management and collaboration. For testing and continuous integration, you can also install Jenkins for automated builds and deployments. While Jenkins configuration is somewhat complex, it offers a rich set of plugins and pipeline mechanisms that can significantly improve team development efficiency.

When setting up a development environment on a US cloud server, remote debugging and log management must also be considered. Problems are inevitable during development, and quickly locating them through logs is crucial. You can configure common log collection tools, such as Filebeat, combined with Elasticsearch for unified log collection and search. This allows for visual analysis of both application errors and database issues. For debugging, SSH tunneling is a simple and effective method, securely mapping server ports to your local server, allowing you to debug remote applications directly within your local IDE.

Security is fundamental to the long-term stability of the entire environment. While development environments don't carry core business processes like production environments, exploiting them can still lead to data breaches and even business disruptions. It's recommended to enable Fail2ban to block abnormal logins and to enable SSL certificates to encrypt web service communications. For multi-user development teams, configure SSH public key authentication to prohibit plaintext password logins, reducing the risk of brute force attacks.

To facilitate maintenance and iteration, it's recommended to document all development environment configurations as scripts or base images. This allows for quick replication of the complete environment during server migrations or when new members join. For example, using shell scripts can centrally perform dependency installation, configuration file writing, and permission settings. This not only shortens environment setup time but also prepares for future expansion.

Quickly setting up a development environment on a US cloud server requires several steps, including system initialization, language and database installation, containerized toolchain configuration, image source optimization, team collaboration tool deployment, and security and log management. With proper planning and the use of automation tools, even beginners can quickly build a fully functional, secure, and controllable development environment.

Relevant contents

Enterprise Server Selection Guide: Comparison of 7 Key Performance Indicators between VDS and VPS How to change the default RDP port of Japanese VPS server Linux US Cloud Server Hadoop Environment Setup Guide (Including Code Version) Enterprise-Level Cloud Server Security Guide: How to Choose an International Service Provider That Complies with GDPR/CCPA? Can Hong Kong cloud servers be used for gaming? A comprehensive analysis and precautions 7 key performance optimization tips for Postman in Linux system HDFS 3.x log storage path in CentOS 8 full analysis process How to deal with the delay issue of mainland China access to Singapore cloud servers What can a Hong Kong cloud server with a 2-core 4G configuration be used for? Redis performance tuning process under Japanese vps server Linux environment
Go back

24/7/365 support.We work when you work

Support