位置: 编程技术 - 正文

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查看目录空间大小)

  • 增值税发票服务名称可以更改吗
  • 核定税种可以在哪里申报
  • 建筑业收到预收款预缴增值税
  • 什么情况下需要补牙
  • 房地产企业所得税纳税义务发生时间
  • 垫付运费的运费税怎么做分录
  • 车险 保险金额
  • 会计中罚款属于什么处理
  • 购税盘需要什么东西
  • 作废的增值税专用发票怎么处理
  • 预付装修费的会计分录
  • 仓库常用包材
  • 用党费返还款购置资产应如何账务处理?
  • 汽车的高速公路是指
  • 法院拍卖房法院有什么义务和责任
  • 手写发票税率
  • 7.1增值税普通发票怎么开?
  • 售后需要品控吗
  • 电子税务局印花税税种认定
  • 以前年度损益调整借贷方向
  • 跨年度的收入如何做分录
  • 补缴纳以前年度企业所得税税率如何论定
  • 小规模纳税人收到专票后如何处理
  • 净资产收益率公式推导
  • 华为鸿蒙系统看PDF文件会不多次存
  • thinkphp5控制器
  • 个人二手车转让协议书免费
  • 打开进程失败
  • 单位房子可以卖吗
  • PHP:pcntl_fork()的用法_PCNTL函数
  • 拉马克是哪国人
  • 企业债权人进行财务分析的根本目的是关心企业的
  • h5的开发
  • 微信小程序怎么制作自己的小程序
  • 发票作废发票怎么处理
  • 退还多缴纳税款
  • 库存商品用于研发要进项税额转出吗
  • 累计预扣法计算并预扣预缴税款
  • 普票与专票的区别在哪?它各自的特点?
  • SQLite教程(十):内存数据库和临时数据库
  • 企业付给个人工资怎么算
  • 具体包括以下哪些方面
  • 工程项目工资表
  • 劳务公司包工包料工程如何账务处理
  • 增值税专用发票的税率是多少啊
  • 存货跌价准备借减贷增吗
  • 社保信息修改到哪里办理
  • access2016备注型
  • sqlserver获取数据库名
  • 企业补缴税款如何申报
  • 营业外收入可以冲减管理费用吗
  • 研发费用不一致说明
  • 我国的税种及税率
  • 跨年度冲红字发票账务处理
  • 权益法下股权投资转让
  • 航天信息税票
  • 年底结转损益后如何结转
  • 会计年初如何轻松工作
  • 物业管理企业应按职工工资总额的1.5%计提工会经费
  • mybatis报错invalid bound statement
  • 在linux系统中
  • 手工设置源泉设计
  • centos7 tcp6
  • win8超级按钮在哪
  • linux常用配置
  • javascript标准
  • windows批量处理命令
  • Node.js中的全局变量有哪些
  • Node.js中的全局对象有
  • 判断一个点在三角形内部
  • for语句中的++i
  • js dom方法
  • ubuntu安装步骤详解
  • python函数的方法
  • 制作网页的三大技术
  • html仿淘宝
  • 成都国家税务局每个月交全民付的钱是什么
  • 走入基层
  • 个人所得税怎么扣除
  • 两会热点有哪些呀?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设