Professional Documents
Culture Documents
#setup
Now setup IP [IP, NM, GT, DNS]
# vim /etc/sysconfig/network-script/ifcfg-eth0
ONBOOT=yes
BOOTPROT=static
:x
# vim /etc/hosts
# vim /etc/resolv.conf
nameserver <DNS’s IP>
[i.e. nameserver 192.168.0.254]
# chkconfig network on
# chkconfig NetworkManager off
# iptables -F
# service iptables save
# chkconfig iptables on
# init 6
#cd /etc/yum.repos.d/
#vim /etc/yum.repos.d/server.repo
Q. NTP Configure:
# system-config-date
Here add the NTP server name
#cd /var/www/html
#lftp <source path>
>ls
>get <sourcefile.html>
>exit
Q. Find
Q. Search String
Q. Crontab:
#vim <fileName>
[ --- in the side the file write this. You can see also man file
#man 5 crontab ----]
50 15 * * * echo hello
:x
#crontab –u <username> <fileName>
#crontab –l –u <username>
# service crond restart
# chkconfig crond on
# groupadd sysusers