CentOS安装备忘2
CentOS7安装备忘2
安装过程中不联网,安装完成也不要立刻联网,先关闭远程的服务后再联网更新。
安装默认使用English,目的是生成的Home下所有文件夹都是英文的,方便使用。
==============
打开设置,找到语言;
下面添加输入法:Chinese (Intelligent Pinyin)
Settings \ Region & Language
Input Sources (+)
Chinese (Intelligent Pinyin)
-----------------
上面可以修改使用语言,重启后生效。
重启后会提示,是否将文件夹的名称修改为中文,建议不要修改,保留英文名称的文件夹名称。
====================
安装好后,关闭或卸载不需要的服务及功能
安装提前下载好的nefs文件系统支持包,可以挂载ntfs格式的分区。可选
rpm -Uvh ntfs-3g-2017.3.23-6.sdl7.x86_64.rpm
移除远程服务:
[root@localhost /]# rpm -qa |grep ssh
libssh2-1.4.3-10.el7_2.1.x86_64
openssh-7.4p1-16.el7.x86_64
openssh-server-7.4p1-16.el7.x86_64
openssh-clients-7.4p1-16.el7.x86_64
[root@localhost /]# yum remove openssh*
[root@localhost /]# rpm -qa |grep vnc
gtk-vnc2-0.7.0-3.el7.x86_64
tigervnc-server-minimal-1.8.0-5.el7.x86_64
gvnc-0.7.0-3.el7.x86_64
tigervnc-license-1.8.0-5.el7.noarch
[root@localhost /]# yum remove *vnc*
以上远程服务不卸载,至少关闭掉,使用时再开。
==================
检查更多:
# netstat -tulpn
# netstat -tulp
# systemctl list-sockets
========================
不需要可以直接移除 yum remove ...
不确定可以关闭
systemctl status ... 查看状态
systemctl stop ... 停止,重启后会恢复
systemctl disable ... 解除自启动
========================
25端口的mail相关服务,
systemctl status postfix
systemctl stop postfix
yum remove postfix
========================
systemctl status chronyd
systemctl stop chronyd
yum remove chrony
========================
network(不要删除,)
systemctl status avahi-daemon.socket avahi-daemon.service
systemctl stop avahi-daemon.socket avahi-daemon.service
systemctl disable avahi-daemon.socket avahi-daemon.service
========================
631端口 print服务
systemctl stop cups.path cups.service cups.socket
systemctl status cups.path cups.service cups.socket
systemctl disable cups.path cups.service cups.socket
========================
systemctl stop rpcbind.service rpcbind.socket rpcbind.target
systemctl status rpcbind.service rpcbind.socket rpcbind.target
systemctl disable rpcbind.service rpcbind.socket rpcbind.target
========================
打开防火墙,默认区域改为block
连接网络,防火墙的网络连接区域改为block(右上方改为永久修改,否则重启后设置就恢复初始了)
yum update
添加源
。。。
=========================
关闭或删除不必要的服务后:
仅剩下dns服务, 1080的python2是后来安装的ss; 5353是chrome的dns.
[root@MiWiFi-R3-srv LibreOffice6.2]# netstat -tulp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 MiWiFi-R3-srv:domain 0.0.0.0:* LISTEN 4798/dnsmasq
tcp 0 0 localhost:socks 0.0.0.0:* LISTEN 9406/python2
udp 0 0 MiWiFi-R3-srv:domain 0.0.0.0:* 4798/dnsmasq
udp 0 0 0.0.0.0:bootps 0.0.0.0:* 4798/dnsmasq
udp 0 0 0.0.0.0:bootpc 0.0.0.0:* 27118/dhclient
udp 0 0 localhost:socks 0.0.0.0:* 9406/python2
udp 0 0 224.0.0.251:mdns 0.0.0.0:* 12997/chrome --type
udp 0 0 224.0.0.251:mdns 0.0.0.0:* 12950/chrome
[root@MiWiFi-R3-srv LibreOffice6.2]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 4798/dnsmasq
tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN 9406/python2
udp 0 0 192.168.122.1:53 0.0.0.0:* 4798/dnsmasq
udp 0 0 0.0.0.0:67 0.0.0.0:* 4798/dnsmasq
udp 0 0 0.0.0.0:68 0.0.0.0:* 27118/dhclient
udp 0 0 127.0.0.1:1080 0.0.0.0:* 9406/python2
udp 0 0 224.0.0.251:5353 0.0.0.0:* 12997/chrome --type
udp 0 0 224.0.0.251:5353 0.0.0.0:* 12950/chrome
[root@MiWiFi-R3-srv LibreOffice6.2]#
=============================
https://www.howtoing.com/remove-unwanted-services-in-centos-7
CentOS安装备忘2的更多相关文章
- 安装 CentOS 后的系统配置及软件安装备忘
安装 CentOS 后的系统配置及软件安装备忘 // */ // ]]> 安装 CentOS 后的系统配置及软件安装备忘 Table of Contents 1 Linux 自举过程 1.1 ...
- MSDE2008安装备忘
MSDE2008安装备忘(适用于WIN7 8 10) 1.系统中必须要VC8.0,即VC2005运行库.2.系统中必须要有.net framework2.0.3.5.4.6运行库.3.windows防 ...
- Sublime Text4(Build 4126) 安装备忘
Sublime Text4(Build 4126) 安装备忘 sublime text 4126 PJ已测可用 打开浏览器进入网站https://hexed.it 打开sublime text4安装目 ...
- centos,nginx安装备忘
# ssh 登录慢解决 vim /etc/ssh/sshd_config UseDNS no # add limitsvi /etc/security/limits.conf* soft nproc ...
- CentOS7安装备忘
======1 下载CentOS镜像文件:https://www.centos.org/download/http://isoredirect.centos.org/centos/7/isos/x86 ...
- Linux服务器软件安装备忘
1.Centos安装Mysql --安装 yum install mysql-server 卸载 yum -e mysql-server --设置为开机启动 chkconfig mysqld on - ...
- windows下matplotlib编译安装备忘
windows下,codeblocks,mingw安装matplotlib. python下一些源码的编译安装,备忘. matplotlib官网编译好的版本只支持到3.3.我不慎刚下了python3. ...
- Mint17 一些安装备忘
1,中文输入法: sudo apt-add-repository ppa:fcitx-team/dailybuild-fcitx-master sudo apt-get update sudo apt ...
- oracle 驱动安装备忘
ubuntu 从oracle官网下载两个必须的rpm包(这里选择的是version12.1.0.2.0, 64位操作系统) oracle-instantclient12.1-basic-12.1.0. ...
随机推荐
- LY.JAVA面向对象编程.包的概述、导包
2018-07-18 08:46:57 导包:
- ural1297
题解: 后缀数组 st表处理加速lcp 把串后面加一个不可能出现的字符 然后再把串倒过来放在后面 暴力枚举中心 判断lcp 代码: #include<bits/stdc++.h> usin ...
- nginx:负载均衡(三)分流策略
[1]轮询策略.轮询策略是最简单的策略,无脑配置,不考虑服务器的访问的能力.每个请求按照时间顺序逐一分配到不同的后端服务器,如果后端服务器down掉,能自动剔除 upstream www.daysn. ...
- day12 生成器和各种推导式
今天主要学习了 1.生成器 2.生成器函数 3.各种推导式(比较诡异,理解了很简单,不理解很难) 4.生成器表达式(重点) 一.生成器 def func(): print'我叫周润发' return ...
- MySQL 占用cpu 100%
目前的线上数据库,分为主从两个库,从库用来做比较耗时的数据统计分析. 今天top了一下从库服务器,发现mysqld 在很长一段时间都占用105% cpu,一开始以为是从库在处理主库的binlog. 两 ...
- 6.1 C++ string类型变量的定义以及输入与输出
参考:http://www.weixueyuan.net/view/6389.html 总结: 在C++中提供了一个型的内建数据类型string,该数据类型可以替代C语言中char数组. 与C风格的c ...
- python学习二三事儿(转,整)
Python 标识符 在 Python 里,标识符由字母.数字.下划线组成. 在 Python 中,所有标识符可以包括英文.数字以及下划线(_),但不能以数字开头. Python 中的标识符是区分大小 ...
- 牛客国庆集训派对Day5 数论之神
题目描述 终于活成了自己讨厌的样子. 这是她们都还没长大的时候发生的故事.那个时候,栗子米也不需要为了所谓的爱情苦恼. 她们可以在夏日的午后,花大把的时间去研究生活中一些琐碎而有趣的事情,比如数论. ...
- MVC中如何避免POST请求中出现的重复提交
使用惯了Asp.Net的服务器控件了, 突然转到MVC框架上来遇到这么个问题. 比如说网速慢的时候, 用户频繁的点击提交按钮, 或者是按F5刷新页面等等.解决方法很简单. 解决方案 1. 在页面生成时 ...
- BSTR 转 char*
#include <comdef.h> #include <comutil.h> #pragma comment(lib,"comsuppw.lib") _ ...