Linux learning notebook

xiaoxiao2021-03-06  63

How to view the year of the file attribute:

#stat -c '% x% Y% Z% n' *

#ls -al --full-time

* In the ls -l command, if you have not seen the file with a year, it indicates that this file is modified this year.

######################################################################################################################################################################################################################################################################################################## #####################

How to determine if a service is running? For example, I can use #service smb status to know if the SMB has already runs. I want to be a script to determine if the SMB has already run. If not run, start this script how to write? ?

A:

PS -e | grep -q serviceename || service serviceName startpgrep SMB || service SMB Start #################################################################################################################################################################################################################################################################### #################################> Rehelation qmail follows QMailRocks.org installation method to install qmail, is already playing a patch TLS, but in some mailboxes to mail when an error has occurred: @ 4000000041b6e20323efce64 delivery 898: deferral: TLS_found_no_client_cert_in_control/clientcert.pem/@4000000041b3c5ac266e18bc delivery 5: deferral: TLS_not_available: _connect_failed: _error: 14077410: SSL_routines: SSL23_GET_SERVER_HELLO: sslv3_alert_handshake_failure / [root @ mail qmail-send] # telnet localhost 25Trying 127.0.0.1 ... Connected to localhost.Escape character is '^]' 220 gino-group.com ESMTPehlo250-gino-. Group.com 250-auth login cram-md5 plain250-auth = login cram-md5 plain250-starttls250-pipelining 250 8bitmime has opened the TLS function. Google has a long time, the way to solve problems can now be recompiled to QMail, remove the TLS's Patch to solve the problem, before installing qmail-1.03, now simply download a NetQmail-1.05 to install attention in recompiling QMail When you should stop the QMail process, otherwise an error will appear to ensure that there is no email in the QMail queue, use qmailctl stop to completely stop the QMail process [root @ mail qmail-send] # qmailctl stat / service / qmail-send: Up (PID 17713) 803 Seconds / Service / qmail-send / log: Up (PID 17717) 803 Seconds / Service / qmail-SMTPD: Up (PID 17718) 803 Seconds / Service / qmail-SMTPD / LOG: UP (PID 17720 ) 803 seconds / service / qmail-pop3d: up (pid 17721) 803 seconds / service / qmail-pop3d / log: up (pid 17722) 803 secondsmessages in queue: 4messages in queue but not yet preprocessed: 0 [root @ mail qmail -send] #Seate NetQmail-1.05 [root @ mail qmail-send] # cd / usr / src / qmail / [root @ mail qmail] # tar zxvf Netqmail-1.05.tar.gz [root @ mail qmail] # CD Netqmail -1.05 [root @ mail netqmail-1.05] # ./collate.sh[root@mail netqmail-1.05] # cd ../[Root@

转载请注明原文地址:https://www.9cbs.com/read-89685.html

New Post(0)