#!/bin/sh ################################################ #Author:nulige # qqinfo:1034611705 # Date: 2015-6-8 #version:1.2 #实现功能:一键系统优化15项脚本,适用于Centos6.x ################################################ #Source function library. . /etc/init.d/functi…
1#!/bin/bash 2# Date: 2018-6-8 3#version:1.2 4#实现功能:一键系统优化15项脚本,适用于Centos6.x 5################################################ 6#Source function library. 7. /etc/init.d/functions 8#date 9DATE=`date +"%y-%m-%d %H:%M:%S"` 10#ip 11IPADDR=`grep &quo…
#!/bin/sh ################################################ #Author:nulige # qqinfo: # Date: -- #version:1.2 #实现功能:一键系统优化15项脚本,适用于Centos6.x ################################################ #Source function library. . /etc/init.d/functions #date DATE=`…
CentOS 6一键系统优化 Shell 脚本 脚本的内容如下: #!/bin/bash#author suzezhi#this script is only for CentOS 6#check the OS platform=`uname -i`if [ $platform != "x86_64" ];then echo "this script is only for 64bit Operating System !"exit 1fiecho "th…
新闻:融资600万 他用一套系统优化15大HR工作场景 精简入转调离 月开通214家 | IT桔子 功劳说不上…
linux 系统 支持PHP脚本一键设置环境.shell脚本一键设置环境.那么 我今天 使用 PHP  + shell 生成 一键设置权限的脚本. 举例子:linux服务器 一键配置discuz网站环境权限 在linux服务器上 安装网站.最主要的是权限问题.(随话说 linux 系统较安全) 1. 第一次安装discuzX3.1论坛程序 2. 会出现以上的情况,那你是一个一个 chmod 777 文件/目录  还是使用脚本.一键搞定?3. linux 系统 支持PHP脚本一键设置环境.shel…
#!/bin/bash #vsftp install . /etc/rc.d/init.d/functions NUM=`rpm -q centos-release | awk -F '-' '{print $3}'` users=/etc/vsftpd/vftpuser.txt login=/etc/vsftpd/vftpuser.db generate_db="db_load -T -t hash -f $users $login" virtual_user_config=/etc…
代码如下: $name = Read-Host "请输入开机启动项的名字(随便起)" $value = Read-Host "请输入开机启动项的值" try{ New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Run" -Name $name -PropertyType String -Value $value -ErrorAction Stop $ti…
环境 CentOS 6.x 32位/64位XEN/KVM/OpenVZ 步骤 依次运行下列命令 #wget http://www.hi-vps.com/shell/vpn_centos6.sh #chmod a+x vpn_centos6.sh 安装Centos6.2PPTPVPN脚本   #bash vpn_centos6.sh 执行完后有1.2.3种英文,对应如下中文意思. 1. 安装VPN服务 2. 修复VPN 3. 添加VPN用户 我们要安装PPTP vpn,当然输入1,然后enter键…
前几天机房上架180台服务器,太多了,使用了cobbler批量安装,具体的看我上代码,我把配置cobbler的命令给堆积起来,也算是个脚本吧,欢迎拍砖指正,下面我上脚本: #!/bin/bash # 关闭selinux setenforce # 关闭firewalld防火墙 systemctl stop firewalld # 下载阿里云镜像源 wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.rep…