当前位置:网站首页>Debian change source and uninstall useless services
Debian change source and uninstall useless services
2022-06-23 22:51:00 【Loader】
First use Debian What about the system? , We usually perform these operations first , Update the source or replace the source , Delete useless port occupancy Services , Give us a clean system , Here are some of my own tutorials , Take notes by the way .
Upgrade source package :
apt update && apt install wget curl nano screen git -y # perhaps apt update && apt upgrade -y
View source
cat /etc/apt/sources.list
One click to change the source to 163
echo 'deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib deb http://mirrors.163.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.163.com/debian/ buster main non-free contrib deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib ' > /etc/apt/sources.list
Manually change
vim /etc/apt/sources.list
163 Source
deb http://mirrors.163.com/debian/ buster main non-free contrib deb http://mirrors.163.com/debian/ buster-updates main non-free contrib deb http://mirrors.163.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.163.com/debian/ buster main non-free contrib deb-src http://mirrors.163.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.163.com/debian/ buster-backports main non-free contrib deb http://mirrors.163.com/debian-security/ buster/updates main non-free contrib deb-src http://mirrors.163.com/debian-security/ buster/updates main non-free contrib
Tencent source
deb http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib deb http://mirrors.cloud.tencent.com/debian-security buster/updates main deb http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib deb http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian-security buster/updates main deb-src http://mirrors.cloud.tencent.com/debian/ buster main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian/ buster-updates main non-free contrib deb-src http://mirrors.cloud.tencent.com/debian/ buster-backports main non-free contrib
One click to change to the default source
echo 'deb http://deb.debian.org/debian/ stretch main deb-src http://deb.debian.org/debian/ stretch main deb http://security.debian.org/debian-security stretch/updates main deb-src http://security.debian.org/debian-security stretch/updates main \# stretch-updates, previously known as 'volatile' deb http://deb.debian.org/debian/ stretch-updates main deb-src http://deb.debian.org/debian/ stretch-updates main ' > /etc/apt/sources.list
debian Firewall introduction :
Delete useless Services
debian8 The version is inexplicably full of ports , This makes me look a little uncomfortable , I checked some information , Finally found some solutions , Now share with you .
Delete exim4 service
exim4 service to open up port :25 Everyone knows that this port can do anything !
systemctl stop exim4 systemctl disable exim4 apt-get purge --auto-remove exim4 exim4-base exim4-config exim4-daemon-light rm -rf /var/log/exim4/
Delete rpcbind service
rpcbind service This service is on port :111 This port .
systemctl stop rpcbind systemctl disable rpcbind apt-get purge --auto-remove rpcbind
Delete nfs service
systemctl stop nfs-common systemctl disable nfs-common apt-get purge --auto-remove nfs-kernel-server nfs-common portmap
All of the above are from centos go to debian Pit encountered .
边栏推荐
- How to lossless publish API gateway why do you need API gateway?
- H265 enables mobile phone screen projection
- Server classification of hardware knowledge (2)
- CS1.6 service startup tutorial
- JMeter pressure measuring tool beginner level chapter
- 2022年性价比高的商业养老保险产品排名
- What is the API gateway architecture? What are the common gateway types?
- What should I do if the RDP fortress server connection times out? Why should enterprises use fortress machines?
- Three ways to enable IPv6 on Tencent cloud
- Implement sequence restriction on memory operations
猜你喜欢
PostgreSQL怎么创建分区表详解

Why is only one value displayed on your data graph?
Mysql中的触发器定义及语法介绍

Section 29 basic configuration case of Tianrongxin topgate firewall

蚂蚁获FinQA竞赛冠军,在长文本数值推理AI技术上取得突破

為什麼你的數據圖譜分析圖上只顯示一個值?

Beauty of script │ VBS introduction interactive practice

Section 30 high availability (HA) configuration case of Tianrongxin topgate firewall

混沌工程,了解一下

SAVE: 软件分析验证和测试平台
随机推荐
How do new investors open accounts by speculation? Is online account opening safe?
Statistics of clinical trials - Calculation of tumor trial endpoint
Installation and use of qingscan scanner
Digital transformation solution for raw material industry chain supply chain platform
What is the was fortress server restart was command? What are the reasons why was could not be restarted?
Understand the data consistency between MySQL and redis
蚂蚁集团自研TEE技术通过国家级金融科技产品认证
The technical design and practice of decrypting the red envelopes of Tiktok Spring Festival
sql server常用sql
How to set up a website construction map
SQL Server Common SQL
PHPMailer 发送邮件 PHP
脚本之美│VBS 入门交互实战
Source code analysis of jmeter5.1 core class testcompiler
Go build command (go language compilation command) complete introduction
H265 enables mobile phone screen projection
Log4j has been exposed to a nuclear bomb level vulnerability, and the developer has fried the pot!
Reconstruct the backbone of the supply chain and realize lean production in the LED lighting industry
How to solve the problem that the GPU VNC has two mice with large deviation
How to use phpMyAdmin to restore a backed up MySQL database