shell 编程生成日期文件;Server虚拟机上进行Web服务器配置

shell 编程生成日期文件

1. 请编写一个脚本,命名为sh01.sh,其功能是:

键盘输入文件名(要求使用名字全拼作为文件名)。

自动创建3个文件。

1个为系统当天日期(CCYYMMDD)。

1个为系统前一天日期。

1个为系统前两天日期。 

image

Server虚拟机上进行Web服务器配置

1.rpm –qa | grep httpd

wps31

2.命令:yum install  httpd –y

wps32

service httpd start

wps33

ps ax | grep httpd

wps34

3.iptables -I INPUT -p tcp --dport 80 -j ACCEPT

wps35

4.chkconfig --level 35 httpd on

wps36

5. wps37

wps38

原文地址:https://www.cnblogs.com/gdf456/p/12010537.html