`

liunx 服务器 - im20

阅读更多

crontab -l

1 * * * * /usr/sbin/ntpdate -u 1.centos.pool.ntp.org
#monitor
*/5 * * * * sh /data/commands/monitor-zhimei-main-resin-2.sh

 

===============================================

/etc/rc.local
#!/bin/sh

touch /var/lock/subsys/local
/usr/local/sbin/zabbix_agentd &

mount -t nfs 10.22.32.163:/data/web/a.imimg.cn /data/web/a.imimg.cn &
mount -t nfs 10.22.32.163:/data/web/b.imimg.cn /data/web/b.imimg.cn &
/data/server/redis-64000/src/redis-server /data/server/redis-64000/redis.conf
/data/server/memcached-1.4.7/bin/memcached -d -m 3072 -p 65000 -u root

 

=================================================

Linux下登录提示是记录在/etc/issue和/etc/motd中,这两者的区别是,前者是在用户登录前就显示,而后者则是在用户登录后显示。

 

[root@WEB-22-32-143 ~]# more /etc/motd
Hello Sir:
        This is : 10.22.32.143
        Service : Resin
        Loction : /data/server/
        Usage   : zhimei

        http://www.zhimei.com
                resin : /data/server/resin-pro-4.0.27-main/
                redis : /data/server/redis-64000/
                web   : /data/web/www.zhimei.com/
                port  : 8081
                wport : 6801

分享到:
评论
发表评论

文章已被作者锁定,不允许评论。

相关推荐

Global site tag (gtag.js) - Google Analytics