当前位置:网站首页>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 .
边栏推荐
- 运维故障经历分享
- Use elastic security to detect the vulnerability exploitation of cve-2021-44228 (log4j2)
- Micro build low code tutorial -hello, world
- 为什么你的数据图谱分析图上只显示一个值?
- Operation and maintenance failure experience sharing
- Docker中部署Redis集群与部署微服务项目的详细过程
- C#/VB.NET Word转Text
- Is the website under construction because there is no FTP upload? Can I upload without FTP
- How to set up links for website construction how to build a website
- Ant group's self-developed tee technology has passed the national financial technology product certification
猜你喜欢
随机推荐
Consequences of website construction without SSL authentication are websites without SSL authentication reliable
How to build a website after registering a domain name
Using nodejs and Tencent cloud API to identify invoices
How to set secondary title in website construction what is the function of building a website
What are the operation and maintenance advantages of Fortress machine web application publishing server? Two outstanding advantages
How to lossless publish API gateway why do you need API gateway?
Grpc: quickly configure the general API to obtain process meta information
蚂蚁集团自研TEE技术通过国家级金融科技产品认证
How to use fortress remote server two types of Fortress
The technical design and practice of decrypting the red envelopes of Tiktok Spring Festival
应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
How does the national standard gb28181 security video platform easygbs download device video through the interface?
Production of labels for table products
Flush cache clear
How do new investors open accounts by speculation? Is online account opening safe?
解密抖音春节红包背后的技术设计与实践
How to choose the server for website construction, including which servers and how much to rent
The article "essence" introduces you to VMware vSphere network, vswitch and port group!
SAVE: 软件分析验证和测试平台
Save: software analysis, verification and test platform




