Command check date: echo | openssl s_client -connect nupakachi.com:443 2>/dev/null | openssl x509 -noout -dates Command renew: /opt/letsencrypt/certbot-auto renew Sau khi gia hạn cần restart lại nginx: service nginx restart
View process occupying port 4200 fuser 4200/tcp Kill fuser -k 4200/tcp
echo | openssl s_client -connect <you server here>:443 2>/dev/null | openssl x509 -noout -dates
Dump and restore a single table from .sql Dump mysqldump db_name table_name > table_name.sql Dumping from a remote database mysqldump -u <db_username> -h <db_host> -p db_name table_name > table_name.sql For further reference: http://www.abbeyworkshop.com/howto/lamp/MySQL_Export_Backup/index.html Restore mysql -u <user_name> -p db_name mysql> source <full_path>/table_name.sql or in one line mysql -u username -p . . . Read more
find abms_* -type d -maxdepth 0 -mindepth 0 -exec tar zcvf {}.tar.gz {} \;
[sourcecode language=”powershell”] root@gandalf:/var/spool/postfix# /etc/init.d/postfix stop root@gandalf:/var/spool/postfix# killall -9 postdrop root@gandalf:/var/spool/postfix# chgrp -R postdrop /var/spool/postfix/public root@gandalf:/var/spool/postfix# chgrp -R postdrop /var/spool/postfix/maildrop/ root@gandalf:/var/spool/postfix# postfix check root@gandalf:/var/spool/postfix# postfix reload [/sourcecode]
vào SSH chạy lệnh cd /usr/local/directadmin/custombuild ./build update ./build letsencrypt
su nhập pass root visudo Thêm dòng: username ALL=(ALL) ALL (username -> Tên user) save và exit