Linux Server Infrastructure: From Installation to Service Deployment

This article introduces Linux server installation and basic service deployment, suitable for zero-basic learners. Linux is the preferred choice for servers due to its stability and security. Unlike the desktop version, the server version focuses on performance optimization. Installation preparation: Minimum hardware requirements are 1-core CPU, 2GB memory, and 20GB hard disk (SSD is better). Recommended distributions include CentOS (enterprise-grade stability) or Ubuntu Server (user-friendly for beginners). Taking CentOS 7 as an example, download the minimal ISO, perform automatic partitioning, set the root password, and restart. Basic configuration: Configure a static IP (to avoid changes), create a regular user, and disable direct root login. The firewall should only open necessary ports (e.g., 80 for web services). Core service deployment: Practical deployment of Nginx (web server), vsftpd (FTP server), and MariaDB (database), with installation, startup, and verification methods introduced respectively. Summary: The process is minimal installation → network security configuration → core service deployment. Security and stability are key, and subsequent exploration can be done on complex architectures (e.g., LAMP/LNMP).

Read More
Checking for Malicious Logins on Ubuntu System
2025-09-02 139 views 后端 Ubuntu server Ubuntu

In Ubuntu system, there are multiple ways to check for malicious login situations. To view login history, commands like `last`, `lastb`, and `last -i` can be used. For system log inspection, commands such as `sudo grep "Failed password" /var/log/auth.log` are applicable; in newer Ubuntu versions, `journalctl -u ssh -g "Failed password"` can be used instead. To check recently logged-in users, commands like `who`, `w`, and `lastlog` are useful. For SSH login records, `sudo grep sshd /var/log/auth.log` combined with relevant keywords can be employed.

Read More
Setting up a Java Web Server on Ubuntu Server
2017-04-16 229 views 后端 Ubuntu server JavaWeb server

This article details the steps to install and configure Tomcat, PHPMyAdmin, and resolve MySQL Chinese garbled characters issues on an Ubuntu server. Below is a summary of the content along with some supplementary information: 1. **Installing and Setting Up Apache2** - Changed the Apache2 service port to 8022 to avoid conflicts with other web services. - Started Apache. 2. **Installing PHPMyAdmin and Associating with Apache2** - Configured Apache to support p

Read More