网站建设的技术方案,怎么建一个小说网站,开网店的流程步骤,小程序开发公司米云#//把下面内容#xff0c;做成init.sh文件#xff0c;放到liunx任意目录下#xff0c;用bash ./init.sh#//执行#xff0c;或用chmod -R 777 init.sh#//赋权后#xff0c;再用./init.sh#//执行#!/bin/bash## 初始centOS系统环境# 1. 在线安装一些编译环境# 2. 关闭防火墙#…#//把下面内容做成init.sh文件放到liunx任意目录下用bash ./init.sh#//执行或用chmod -R 777 init.sh#//赋权后再用./init.sh#//执行#!/bin/bash## 初始centOS系统环境# 1. 在线安装一些编译环境# 2. 关闭防火墙# 3. 修改内核参数##yuminst(){#update yumyum -y update#install epel EPEL 是yum的一个软件源里面包含了许多基本源里没有的软件wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmsudo rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm#installyum install -y setuptool ntsysv iptables pcre-devel openssl-devel bzip2-devel xinetd lrzsz lsof system-config-securitylevel-tui system-config-network-tui apr-util xorg-x11-drv-penmount perl-DBD-MySQL bind-utils --nogpgcheckyum install -y zip unzip --nogpgcheckyum install -y libselinux-python python-develyum install -y net-snmp #net-snmp-perl net-snmp-utils net-snmp-develyum install -y mlocate --nogpgcheckupdatedbyum install -y ncurses ncurses-devel bisonyum install -y glibc glibc-common glibc-devel gd gd-devel libtool libpcap libpcap-devel gdbm gdbm-devel zlib zlib-devel libxslt audit-libs-devel --nogpgcheckyum install -y openssh openssh-server openssh-clients --nogpgcheckyum install -y make cmake vim* gcc gcc-c --nogpgcheckyum install -y nfs-utils nfs-utils-lib nfs4-acl-tools cifs-utils xfsprogs --nogpgcheckyum install -y crontabs vixie-cron --nogpgcheckyum install -y ntp --nogpgcheckyum install -y telnet}ser(){/etc/init.d/crond startchkconfig crond on/etc/init.d/iptables stopchkconfig iptables off/etc/init.d/sshd startchkconfig sshd onsetenforce 0sed -ri s/SELINUXenforcing/SELINUXdisabled/g /etc/selinux/config}kernal(){#内核参数修改modprobe nf_conntrackecho modprobe nf_conntrack /etc/rc.localmodprobe bridgeecho modprobe bridge /etc/rc.localecho net.ipv4.tcp_fin_timeout 60net.ipv4.tcp_tw_reuse 1net.ipv4.tcp_tw_recycle 1net.ipv4.tcp_syncookies 1net.ipv4.tcp_max_syn_backlog 16384net.ipv4.tcp_max_tw_buckets 36000net.ipv4.route.gc_timeout 100net.ipv4.tcp_syn_retries 2net.ipv4.tcp_synack_retries 1net.core.somaxconn 32768net.core.netdev_max_backlog 32768net.ipv4.tcp_max_orphans 327680net.nf_conntrack_max 102400net.netfilter.nf_conntrack_max 102400net.netfilter.nf_conntrack_tcp_timeout_established 180net.netfilter.nf_conntrack_tcp_timeout_time_wait 120net.netfilter.nf_conntrack_tcp_timeout_close_wait 60net.netfilter.nf_conntrack_tcp_timeout_fin_wait 120 /etc/sysctl.confsysctl -pecho }filelimit(){#修改打开文件限制echo ulimit -n 65535 /etc/profilesource /etc/profileecho * soft nproc 65535* hard nproc 65535* soft nofile 65535* hard nofile 65535 /etc/security/limits.confecho * soft nproc 65535 /etc/security/limits.d/90-nproc.confecho -e 修改打开文件限制完成 }echo 1: yum安装基础环境echo 2: 修改内核参数及文件限制echo 3: allread -p 请选择 numif [ -z $num ];thenecho $numelif [ $num -eq 1 ];thenyuminstserelif [ $num -eq 2 ];thenkernalfilelimitelif [ $num -eq 3 ];thenyuminstserkernalfilelimitelseecho 请输入正确选项exitfi