- 博客(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
2416
原创 数据备份
#!/bin/bash echo "Input user name " read user echo "Input passwd for the user" read passwd echo "Input databases name :" read name if [ -z $name ] then echo "give me a database name...
2017-03-10 18:37:46
357
原创 ssh连接脚本
#!/usr/bin/expect set timeout 10 set username [lindex $argv0] set passwd [lindex $argv1] set hostname [lindex $argv2] spawn ssh $username@$hostname expect "*password:" send "passwd\r" inter...
2017-03-10 18:33:52
579
原创 用户创建脚本
#!/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:" exit fi echo -n "Input a passwd...
2017-03-10 18:32:26
568
原创 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
566
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅