kloxo-mr 常用命令

to know the configuration of the installed

sh /script/sysinfo

restarting all services

sh /script/restart-services
sh /script/restart-all

restarting per-item

/etc/init.d/named restart
/etc/init.d/httpd restart
/etc/init.d/nginx restart
/etc/init.d/php-fpm restart
/etc/init.d/mysqld restart
/etc/init.d/kloxo restart

example fix

sh /script/fixweb
sh /script/fixphp
sh /script/fixdns
sh /script/fixwebmail
sh /script/fixmail
sh /script/fixvpop
sh /script/fix-all

Clean-Up for affected software, especially after updating kloxo-mr

sh /script/cleanup

manual alternative fix permission & ownership at kloxo-mr menu

sh /script/fix-chownchmod

example command for optimize & repair mysql database

sh /script/mysql-optimize --select=repair
sh /script/mysql-optimize --select=optimize

Clear Cache (*not work in OpenVz VPS)

sh /script/clearcache --select=1

Manual alternative apache optimize

### for mod_php select optimeze
sh /script/apache-optimize --select=optimize
### for suphp/fcgid/php-fpm
sh /script/apache-optimize --select=default

Reset mysql root password

sh /script/reset-mysql-root-password <newpassword>

Reset Kloxo admin password login:

sh /script/resetpassword master <newpassword>

another way to convert database storage engine (myisam or innodb)

sh /script/mysql-convert --engine=MyISAM
sh /script/mysql-convert --engine=InnoDB
### MariaDB only convert to aria
sh /script/mysql-convert --engine=aria

RkHunter Check (security)

rkhunter --check

check memory

free -m

important

yum list installed httpd* mod*

猜你喜欢

转载自blog.csdn.net/kongjingrou/article/details/78957334