- 博客(5)
- 收藏
- 关注
原创 邮件服务,高级网络配置
########邮件系统mail######(westos.westos.com linux.;inux.com)#####1.配置DNS######yum install bind -y#vim /etc/named.conf ##开启所有端口#vim /etc/named.rfc1912.zones ##添加域名#vim /var/named/linux.com.zone $...
2017-03-16 19:41:02
2233
原创 数据备份
#!/bin/bashecho "Input user name "read user echo "Input passwd for the user"read passwdecho "Input databases name :"read nameif [ -z $name ]then echo "give me a database name...
2017-03-10 18:37:46
284
原创 ssh连接脚本
#!/usr/bin/expectset timeout 10set username [lindex $argv0]set passwd [lindex $argv1]set hostname [lindex $argv2]spawn ssh $username@$hostnameexpect "*password:"send "passwd\r"inter...
2017-03-10 18:33:52
494
原创 用户创建脚本
#!/bin/bash#echo -n "Input a username of file :"read file1 if [ -e $file1 ]then MAXLINE1=`wc -l $file1 |cut -d " " -f 1` else echo "No have username of file:" exitfiecho -n "Input a passwd...
2017-03-10 18:32:26
472
原创 Linux课堂总结
####http服务的基础启动###### 1.yum install httpd -y ##安装服务2.systemctl start httpd ##开启服务3.systemctl enable httpd ##开机自启4.firewall-cmd --permanent --add-service=http ##关闭火墙限制5.firewall-cmd --perma...
2017-03-10 17:28:14
466
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人