Code:
% ncmpcpp ~ Couldn't connect to MPD (host = localhost, port = 6600): Connection refused
% ncmpcpp ~ Couldn't connect to MPD (host = localhost, port = 6600): Connection refused
ssh $a@$b mkdir abc
HOSTS=`cat $host_list` for line in $HOSTS do ssh -o ConnectTimeout=5s $line true >> /dev/null RESULT=$? if [ $RESULT -eq 0 ] then echo $line > succeed.txt else echo $line > fail.txt fi done
ssh: connect to host c28-0112-05.ad.mtu.edu port 22: No route to host
netstat: /proc/net/tcp6: No such file or directory netstat: /proc/net/udp6: No such file or directory netstat: /proc/net/raw6: No such file or directory tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN
#<service_name> <sock_type> <proto> <flags> <user> <server_path> <args> 21 stream tcp nowait root ftpd ftpd /etc telnet stream tcp nowait root /usr/sbin/telnetd
504 Gateway Timeout Gateway timeout expired while waiting for server response.
# telnet 10.2.29.201 Trying 10.2.29.201... connected to 10.2.29.201. Escape character is '^]' Connection closed by foreign host.
root 29896 1 0 10:53 ? 00:00:00 /usr/sbin/vsftpd /etc/vsftpd/vsftpd.conf root 29899 23821 0 10:53 pts/0 00:00:00 grep ftp
Connected to localhost (127.0.0.1). 421 Service not available.
Read from remote host 1.1.1.1: Connection reset by peer Connection to 1.1.1.1 closed.
root@OpenWrt:~# showmount -e localhost clnt_create: RPC: Program not registered
root@OpenWrt:~# dmesg | tail [ 22.252000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 24.228000] eth1: link UP - 100/full - flow control off [ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5). [ 31.588000] device eth1 entered promiscuous mode [ 31.596000] br-lan: port 1(eth1) entered forwarding state [ 31.600000] br-lan: port 1(eth1) entered forwarding state [ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 31.684000] eth1: link UP - 100/full - flow control off [ 33.604000] br-lan: port 1(eth1) entered forwarding state
root@OpenWrt:~# /etc/init.d/nfsd start root@OpenWrt:~# showmount -e localhost Export list for localhost: /mnt/3tb *
root@OpenWrt:~# dmesg | tail [ 24.228000] eth1: link UP - 100/full - flow control off [ 24.244000] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 30.124000] svc: failed to register nfsdv3 RPC service (errno 5). [ 31.588000] device eth1 entered promiscuous mode [ 31.596000] br-lan: port 1(eth1) entered forwarding state [ 31.600000] br-lan: port 1(eth1) entered forwarding state [ 31.652000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 31.684000] eth1: link UP - 100/full - flow control off [ 33.604000] br-lan: port 1(eth1) entered forwarding state [16642.280000] svc: failed to register lockdv1 RPC service (errno 124).
root@OpenWrt:~# /etc/init.d/portmap enable root@OpenWrt:~# /etc/init.d/nfsd enable
[root@toystory ~]# cat /etc/rndc.conf key "toystory-key" { algorithm hmac-md5; secret "K9qBsQwusP6430cykS2AeA=="; }; options { default-key "toystory-key"; default-server 127.0.0.1; default-port 953; }; [root@toystory ~]# cat /etc/named.conf key "toystory-key" { algorithm hmac-md5; secret "K9qBsQwusP6430cykS2AeA=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "toystory-key"; }; }; key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; controls { inet 10.249.249.3 port 953 allow { 10.249.249.2; } keys { "wormhole-key"; }; };
[root@wormhole ~]# cat /etc/rndc.conf key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; options { default-key "wormhole-key"; default-server 127.0.0.1; default-port 953; }; [root@wormhole ~]# cat /etc/named.conf key "wormhole-key" { algorithm hmac-md5; secret "7PvoY3oysQz8DyASiUTlNA=="; }; controls { inet 127.0.0.1 port 953 allow { 127.0.0.1; } keys { "wormhole-key"; }; }; server 10.249.249.3 { keys { "wormhole-key"; }; };
[root@toystory ~]# rndc status version: 9.9.4-RedHat-9.9.4-18.el7_1.1 <id:8f9657aa> CPUs found: 1 worker threads: 1 UDP listeners per interface: 1 number of zones: 104 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running [root@toystory ~]# rndc -s wormhole.movie.edu status rndc: connect failed: 10.249.249.2#953: connection refused
[root@wormhole ~]# rndc status version: 9.8.2rc1-RedHat-9.8.2-0.30.rc1.el6_6.2 CPUs found: 1 worker threads: 1 number of zones: 22 debug level: 0 xfers running: 0 xfers deferred: 0 soa queries in progress: 0 query logging is OFF recursive clients: 0/0/1000 tcp clients: 0/100 server is up and running
# rpm -Uvh http://nginx.org/packages/rhel/6/noarch/RPMS/nginx-release-rhel-6-0.el6.ngx.noarch.rpm
curl: (6) Couldn't resolve host
curl: (22) The requested URL returned error: 404
[linux@localhost ~]$ (sleep 6 && echo "A test") & [1] 3312 [linux@localhost ~]$ echo $! 3312 [linux@localhost ~]$ A test
./dbsync &>/dev/null & [1] 5047 [linux@localhost comm5]$ echo $! 5047
echo $!