In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces how to implement the simple version of Linux server initialization Shell script, the article is very detailed, has a certain reference value, interested friends must read it!
The Shell script is mainly used to initialize the newly installed Linux server system, including:
Close the IPv6 module
Close SELinux
Let vim display colors
Set system language coding
Optimize system servic
Kernel parameter optimization and so on.
Can be modified according to their own actual situation, can be used in the production environment. The original author is NetSeek, and I have made some modifications.
#! / bin/sh# desc: lsm03624 modified by www.webnginx.com#-cut begin---#welcomecat / etc/modprobe.confecho "alias ipv6 off" > > / etc/modprobe.conf/sbin/chkconfig-level 35 ip6tables offecho "ipv6 is disabled!" # Disable selinuxsed-I'/ SELINUX/s/enforcing/disabled/' / etc/selinux/configecho "selinux is disabled You must reboot! "# vimsed-I" 8s / ^ / alias vi='vim'/ "/ root/.bashrcecho 'syntax on' > / root/.vimrc#zh_cnsed-I-e's / ^ Lang =. * / LANG=" zh_CN.UTF-8 "/' / etc/sysconfig/i18n# configure file max to 52100echo" * soft nofile 52100* hard nofile 52100 "> > / etc/security/limits.conf#tunoff services#- -cat > / etc/sysctl.confecho "optimizited kernel configure was done!" The above is all the contents of the article "how to implement a simple version of the Linux server initialization Shell script". Thank you for reading! Hope to share the content to help you, more related knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.