位置: 编程技术 - 正文

CentOS系统环境精简优化详解(centos基本环境)

编辑:rootadmin

推荐整理分享CentOS系统环境精简优化详解(centos基本环境),希望有所帮助,仅作参考,欢迎阅读内容。

文章相关热门搜索词:centos运行环境,centos 精简,centos基本环境,centos lamp环境部署,centos运行环境,centos 环境变量设置,centos8基本环境选哪个,centos运行环境,内容如对您有帮助,希望把文章链接给更多的朋友!

第一步、删除不必要的自带软件包

yum remove Deployment_Guide-en-US finger cups-libs cups ypbind

yum remove bluez-libs desktop-file-utils ppp rp-pppoe wireless-tools irda-utils

yum remove sendmail* samba* talk-server finger-server bind* xinetd

yum remove nfs-utils nfs-utils-lib rdate fetchmail eject ksh mkbootdisk mtools

yum remove syslinux tcsh startup-notification talk apmd rmt dump setserial portmap yp-tools

yum groupremove "Mail Server" "Games and Entertainment" "X Window System" "X Software Development"

yum groupremove "Development Libraries" "Dialup Networking Support"

yum groupremove "Games and Entertainment" "Sound and Video" "Graphics" "Editors"

yum groupremove "Text-based Internet" "GNOME Desktop Environment" "GNOME Software Development"

第二步、升级centos系统

yum update #更新系统

yum clean all #清理全部缓存文件

第三步、禁用seLinux

sestatus #先执行看seLinux状态,如果不是disabled,就需要执行下面步骤,否则不要执行

vi /etc/selinux/config

SELINUX=disabled #禁用SeLinux

SELINUX=enforcing #使用SeLinux

第四步、禁止IPV6(执行后需要reboot重启)

vi /etc/modprobe.conf #打开文件,把下面两行加到最后

alias net-pf- off

alias ipv6 off

第五步、初始化防火墙

touch /etc/sysconfig/iptables

iptables -F

iptables -X

iptables -Z

service iptables save

service iptables restart

第六步、禁止无用服务

#! /bin/bash

service acpid off

service atd stop

service auditd stop

service avahi-daemon stop

service avahi-dnsconfd stop

service bluetooth stop

service conman stop

service cpuspeed stop

service cups stop

service dnsmasq stop

service dund stop

service firstboot stop

service hidd stop

service httpd stop

service ibmasm stop

service ip6tables stop

service irda stop

service kdump stop

service lm_sensors stop

service mcstrans stop

service messagebus stop

service microcode_ctl stop

service netconsole stop

service netfs stop

service netplugd stop

service nfs stop

service nfslock stop

service nscd stop

service ntpd stop

service oddjobd stop

service pand stop

service pcscd stop

service portmap stop

CentOS系统环境精简优化详解(centos基本环境)

service psacct stop

service rdisc stop

service restorecond stop

service rpcgssd stop

service rpcidmapd stop

service rpcsvcgssd stop

service saslauthd stop

service sendmail stop

service setroubleshoot stop

service smb stop

service vncserver stop

service winbind stop

service wpa_supplicant stop

service xfs stop

service ypbind stop

service yum-updatesd stop

chkconfig acpid off

chkconfig atd off

chkconfig auditd off

chkconfig avahi-daemon off

chkconfig avahi-dnsconfd off

chkconfig bluetooth off

chkconfig conman off

chkconfig cpuspeed off

chkconfig cups off

chkconfig dnsmasq off

chkconfig dund off

chkconfig firstboot off

chkconfig hidd off

chkconfig httpd off

chkconfig ibmasm off

chkconfig ip6tables off

chkconfig irda off

chkconfig kdump off

chkconfig lm_sensors off

chkconfig mcstrans off

chkconfig messagebus off

chkconfig microcode_ctl off

chkconfig netconsole off

chkconfig netfs off

chkconfig netplugd off

chkconfig nfs off

chkconfig nfslock off

chkconfig nscd off

chkconfig ntpd off

chkconfig oddjobd off

chkconfig pand off

chkconfig pcscd off

chkconfig portmap off

chkconfig psacct off

chkconfig rdisc off

chkconfig restorecond off

chkconfig rpcgssd off

chkconfig rpcidmapd off

chkconfig rpcsvcgssd off

chkconfig saslauthd off

chkconfig sendmail off

chkconfig setroubleshoot off

chkconfig smb off

chkconfig vncserver off

chkconfig winbind off

chkconfig wpa_supplicant off

chkconfig xfs off

chkconfig ypbind off

chkconfig yum-updatesd off

这样通过上述6步骤,就可以完成对centos精简和优化。

CentOS文件和目录权限实战详解 环境创建俩个用户user1和user2[root@localhost~]#useradduser1[root@localhost~]#useradduser2创建两个文件夹[root@localhost~]#mkdir-p/user1/user2打开另外一个终端切换到su-user1[roo

CentOS6.2版本用yum升级到CentOS6.6的方法 因为手上只有6.2版本的CentOS,安装好后觉着版本太低了,就通过命令行进行升级查看可用的更新#yumlistupdates更新升级到centos6.5#yumupdate不幸的是,我在这

CentOS用户账号管理详解 1、用户管理/etc/passwd用户名配置文件/etc/shadow用户密码配置文件(1)/etc/passwd的结构:username:password:uid:gid:commit:userhomepath:shell说明:uid和gid系统默认按序自

标签: centos基本环境

本文链接地址:https://www.jiuchutong.com/biancheng/359107.html 转载请保留说明!

上一篇:CentOS系统中跟踪高IO等待详解(linux 追踪)

下一篇:CentOS文件和目录权限实战详解(centos查看目录空间大小)

  • 小规模纳税人企业所得税多少
  • 小规模纳税人征税率为多少
  • 无形资产摊销的会计科目
  • 个人公积金计入什么会计科目
  • 购销合同印花税怎么算
  • 其他业务利润怎么算公式
  • 房地产土地增值税计税依据
  • 会计凭证的保管期限为多少
  • 外币应收帐款汇兑损益现流附表
  • 调财务报表怎样调整
  • 多交印花税申请怎么写
  • 诉讼费可以入公司账吗
  • 停车费要交税吗
  • 服务性合同签了能反悔吗
  • 分公司开票总公司收款行吗
  • 仓储行业税率是多少
  • 个人提前退休取得的一次性补贴收入免征
  • 土地增值税怎么预交
  • 土地使用税每个月都要计提吗
  • 税金及附加是否设二级科目
  • 子公司资不抵债
  • 企业的低值易耗品主要包括什么等
  • 土地出让金产生的利息交契税吗
  • 一般纳税人十万以下免教育费附加
  • 建筑业购买材料入什么会计科目
  • 出口退税挂靠业务如何做帐?
  • 月末库存商品怎么记账
  • 无线路由器如何桥接wifi信号
  • windows商店如何切换地区
  • 股票的发行费用怎么入账
  • 公司的房租收入要交税吗
  • 拍卖有抵押的车子怎么处理
  • 在承租土地上建房是否应核算为固定资产会计视野
  • Treetop walkway in Hainich National Park, Thuringia, Germany (© mauritius images GmbH/Alamy)
  • php的header函数
  • 结转以前年度本年利润会计分录
  • 购买税盘的服务费全额抵扣怎么操作
  • 微前端Qiankun
  • vue为什么监听不到对象内部属性
  • win11电源高性能模式代码
  • yolov8训练自己的数据集 Windows
  • 卷积神经网络有哪些
  • 资本化的后续支出
  • 公司注册实收资本能为0嘛
  • 差旅费报销可以直接从公账转到个人账户吗
  • 一般纳税人和小规模公司怎么区分
  • 织梦发布文章栏目怎么不显示
  • curl抓包
  • 农副产品免税了还需要缴纳个人所得税吗
  • 哪些企业适用于企业会计制度
  • 递延收益核算哪些内容
  • 海关完税凭证抵税怎么算
  • 小规模出售固定资产账务处理
  • 企业所得税的税收筹划
  • 如何区分生产类型
  • 顾问费交多少税
  • 在建工程借款利息计入哪里
  • 当事人对付款时间没有约定或者约定不明的
  • 单位发放职工2000元慰问金申请怎么写
  • 所得税 补缴
  • 材料报废处理
  • 无需缴纳的税费是什么
  • 调整后视镜
  • ie8-ie11
  • fedora最新版本
  • 怎么在centos中创建一个文件
  • 关闭win7屏保
  • win7系统怎么把c盘的内存加到d盘
  • Win7/Win8.1/Win10命令行配置静态IP地址方法
  • Linux通过sar命令查看网卡流量
  • jquery验证码
  • python supper函数
  • [置顶]bilinovel
  • jQuery javascript获得网页的高度与宽度的实现代码
  • nodejs esmodule
  • Python Sql数据库增删改查操作简单封装
  • js水平垂直居中怎么设置
  • listview报错
  • 如何配置centos7
  • 房子契税发票没给怎么办
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

    网站地图: 企业信息 工商信息 财税知识 网络常识 编程技术

    友情链接: 武汉网站建设