当前位置:网站首页>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 .
边栏推荐
- Section 29 basic configuration case of Tianrongxin topgate firewall
- MySQL数据库配置信息查看与修改方法详解
- Why is only one value displayed on your data graph?
- How to solve the problem that the GPU VNC has two mice with large deviation
- Performance test - LoadRunner obtains the return value and user-defined parameters (parameter operation)
- Understand the data consistency between MySQL and redis
- Six supervised learning methods: classification of poisonous mushrooms
- Implement sequence restriction on memory operations
- How do new investors open accounts by speculation? Is online account opening safe?
- 蚂蚁获FinQA竞赛冠军,在长文本数值推理AI技术上取得突破
猜你喜欢
SQL语句中EXISTS的详细用法大全

Pourquoi une seule valeur apparaît - elle sur votre carte de données?

专业“搬砖”老司机总结的 12 条 SQL 优化方案,非常实用!

Game security - call analysis - write code

Slsa: accelerator for successful SBOM

应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构

游戏安全丨喊话CALL分析-写代码

蚂蚁集团自研TEE技术通过国家级金融科技产品认证

Section 29 basic configuration case of Tianrongxin topgate firewall

解密抖音春节红包背后的技术设计与实践
随机推荐
Interviewer: the difference between uselayouteffect and useeffect
解密抖音春节红包背后的技术设计与实践
Heat transfer oil electric heater
How to set dynamic background for website construction what are the benefits of dynamic background
The old CVM of Tencent cloud is migrated to the new CVM, and the IP remains unchanged
Why don't people like PHP?
How to set secondary title in website construction what is the function of secondary title
Ant won the finqa competition champion and made a breakthrough in AI technology of long text numerical reasoning
How to solve the problem that the GPU VNC has two mice with large deviation
Reconstruct the backbone of the supply chain and realize lean production in the LED lighting industry
Digital transformation solution for raw material industry chain supply chain platform
How to set up links for website construction how to build a website
What is the API gateway architecture? What are the common gateway types?
蚂蚁获FinQA竞赛冠军,在长文本数值推理AI技术上取得突破
December 14, 2021: rebuild the queue according to height. Suppose there's a bunch of people out of order
应用实践 | Apache Doris 整合 Iceberg + Flink CDC 构建实时湖仓一体的联邦查询分析架构
Detailed explanation of bitmap optimization
PHP时间戳
Service API version design and Practice
What is the was fortress server restart was command? What are the reasons why was could not be restarted?