摘要:
这是一个Shell脚本,用于管理Redis进程(启动,停止,重启),如果你在使用Redis,这个脚本可供参考。 #!/bin/sh # # redis - this script starts and stops the redis-server daemon # # chkconfig: - 85 阅读全文
posted @ 2015-11-03 12:33
thinker1017
阅读(388)
评论(0)
推荐(0)
摘要:
很多服务都需要设置为开机自启动。将下面代码复制到 /etc/rc.d/init.d/tomcat ,然后执行chkconfig –add tomcatchkconfig tomcat on就可以service tomcat start附上代码:#!/bin/bash## Startup script... 阅读全文
posted @ 2015-11-03 12:31
thinker1017
阅读(281)
评论(0)
推荐(0)
摘要:
PS:Linux用户操作记录一般通过命令history来查看历史记录,但是如果因为某人误操作了删除了重要的数据,这种情况下history命令就不会有什么作用了。以下方法可以实现通过记录登陆IP地址和所有用户登录所操作的日志记录!在/etc/profile配置文件的末尾加入以下脚本代码就可以实现,下面... 阅读全文
posted @ 2015-11-03 10:01
thinker1017
阅读(759)
评论(0)
推荐(0)
浙公网安备 33010602011771号