位置: 编程技术 - 正文

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

  • 海关对哪些物品有出入境的限制规定
  • 新建厂房装修费是否计入固定资产
  • 已发货没开票分录
  • 计提房产税和土地使用税附件
  • 赔付开票
  • 分派现金股利需要缴税吗
  • 资金占用费税前扣除比例
  • 关联方交易的会计处理方法
  • 合伙企业每年费用
  • 企业所得税的研究论文范文
  • 出口税增加
  • 转回存货跌价准备对递延所得税资产的影响
  • 弥补上年亏损的成语
  • 股东个人为公司付的钱
  • 个人出口货物到国外
  • 长期挂账的应付账款如何写申请报告
  • 企业的技术转让费
  • 企业间借款利息怎么算
  • 出纳人员怎么核酸检测
  • 享受所得税减免优惠的生产性外商投资企业包括
  • 销售时无法确认发票
  • 小企业会计准则和企业会计准则的区别
  • 案例分析工程发票进项高于销项怎么抵扣?
  • 营养成分表的计算表
  • 中国电信服务
  • 事业单位项目前景怎么样
  • 收到收据的会计分录
  • 苹果屏幕刷新率120hz的机型
  • 税额差异会计分录
  • 施工企业工程结算
  • le启动exe是什么意思
  • 怎样改善现金流量比率
  • 罚款收入营业外收入还是其他应收款
  • 高新技术企业研发费比例
  • 新开的酒店怎么做宣传
  • 债券投资账务处理例题
  • phpstorm配置php环境 mac os
  • 金店个体户报什么税
  • 销售提成属于什么费用
  • laravel sqlserver
  • 法院判定支付对方诉讼费,我可以入账吗
  • 金融机构拆出资金的最长期限
  • ibm_db_dbi
  • 不借助的英文
  • 红字专用发票能作废吗
  • 不含税货款要开发票怎么弄
  • 外勤会计是做什么的
  • 无形资产出售当月是否摊销
  • 固定资产一次性扣除政策
  • 收到房租的租金怎么做账
  • 融资性售后回租承租方为什么不交税
  • 现金比率合适范围
  • 公司转帐支票可以转账吗
  • 差旅费用包含哪些
  • 公司与公司之间劳务协议
  • 交通费属于什么部门
  • 退货会计如何处理
  • 房地产开发费用10%
  • 报销没有消费凭据怎么办
  • 开票和不开票
  • 固定资产暂估入账的税务处理
  • Windows Server 2008网络安全与终端服务
  • centos操作命令
  • vista 安装
  • 查看 linux版本
  • Win10 Mobile RS2预览版14904升级截图曝光
  • windows10开机黑屏
  • Win10 Mobile/PC/HoloLens一周年更新14389曝光
  • GLWallpaperService分析一
  • js 正则验证
  • ExtJS 2.0实用简明教程 之获得ExtJS
  • 安卓端数据库
  • NGUI 响应touchscript 的 tuio动作
  • 轮廓理论
  • imagelearning
  • 税收科研工作思路
  • 大渡口在重庆吗
  • 耕地占用税是土地增值税开发成本吗
  • 大同县税务局
  • 纳税申报逾期怎样补报?
  • 免责声明:网站部分图片文字素材来源于网络,如有侵权,请及时告知,我们会第一时间删除,谢谢! 邮箱:opceo@qq.com

    鄂ICP备2023003026号

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

    友情链接: 武汉网站建设