当前位置:网站首页>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 .
边栏推荐
- Notes to nodejs (II)
- How to set the website construction title bar drop-down
- Judge whether the target class conforms to the section rule
- Slsa: accelerator for successful SBOM
- How to use data warehouse to create time series
- Why don't people like PHP?
- How to lossless publish API gateway why do you need API gateway?
- 脚本之美│VBS 入门交互实战
- What are the steps required for TFTP to log in to the server through the fortress machine? Operation guide for novice
- Micro build low code tutorial -hello, world
猜你喜欢

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

Game security - call analysis - write code

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

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

SLSA: 成功SBOM的促进剂

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

Opengauss Developer Day 2022 was officially launched to build an open source database root community with developers

解密抖音春节红包背后的技术设计与实践
SQL语句中EXISTS的详细用法大全
Mysql中的触发器定义及语法介绍
随机推荐
脚本之美│VBS 入门交互实战
Change sql- Tencent cloud database tdsql elite challenge - essence Q & A
SAVE: 软件分析验证和测试平台
Get and post are nothing more than TCP links in nature?
新股民怎样炒股票开户?在线开户安全么?
How to access the top-level domain name and automatically jump to the secondary domain name?
Analysis and application of ThreadLocal source code
Micro build low code tutorial -hello, world
How to use FTP to upload websites to the web
JMeter pressure measuring tool beginner level chapter
How to set up a website construction map
Why is only one value displayed on your data graph?
Source code analysis of jmeter5.1 core class testcompiler
Detailed explanation of flutter exception capture
Core features and technical implementation of FISCO bcos v3.0
2022年性价比高的商业养老保险产品排名
Redis6.x.x build rediscluster cluster
Micro build low code tutorial - variable definition
Command line setting the next boot to enter safe mode
Why don't people like PHP?