技术教程

安装宝塔Centos安装脚本yuminstall-ywget&&wget-Oinstall.shhttp://download.bt.cn/install/install.sh&&shinstall.shUbuntu/Deepin安装脚本wget-Oinstall.shhttp://download.bt.cn/install/install-ubuntu.sh&&sudobashinstall.shDebian安装脚本wget-Oinstall.shhttp://download.bt.cn/install/install-ubuntu.sh&&bashinstall.shFedora安装脚本wget-Oinstall.shhttp://download.bt.cn/install/install.sh&&bashinstall.sh管理宝塔停止/etc/init.d/btstop启动/etc/init.d/btstart重启/etc/init.d/btrestart卸载/etc/init.d/btstop&&chkconfig--delbt&&rm-f/etc/init.d/bt&&rm-rf/www/server/panel查看当前面板端口cat/www/server/panel/data/port.pl修改面板端口,如要改成8881(centos6系统)echo'8881'>/www/server/panel/data/port.pl&&/etc/init.d/btrestartiptables-IINPUT-ptcp-mstate--stateNEW-mtcp--dport8881-jACCEPTserviceiptablessaveserviceiptablesrestart修改面板端口,如要改成8881(centos7系统)echo'8881'>/www/server/panel/data/port.pl&&/etc/init.d/btrestartfirewall-cmd--permanent--zone=public--add-port=8881/tcpfirewall-cmd--reload强制修改MySQL管理(root)密码,如要改成123456cd/www/server/panel&&pythontools.pyroot123456修改面板密码,如要改成123456cd/www/server/panel&&pythontools.pypanel123456查看宝塔日志cat/tmp/panelBoot.pl查看软件安装日志cat/tmp/panelExec.log站点配置文件位置/www/server/panel/vhost删除域名绑定面板rm-f/www/server/panel/data/domain.conf清理登陆限制rm-f/www/server/panel/data/*.login查看面板授权IPcat/www/server/panel/data/limitip.conf关闭访问限制rm-f/www/server/panel/data/limitip.conf查看许可域名cat/www/server/panel/data/domain.conf关闭面板SSLrm-f/www/server/panel/data/ssl.pl&&/etc/init.d/btrestart查看面板错误日志cat/tmp/panelBoot查看数据库错误日志cat/www/server/data/*.err站点配置文件目录(nginx)/www/server/panel/vhost/nginx站点配置文件目录(apache)/www/server/panel/vhost/apache站点默认目录/www/wwwroot数据库备份目录/www/backup/database站点备份目录/www/backup/site站点日志/www/wwwlogsNginx服务管理nginx安装目录/www/server/nginx启动/etc/init.d/nginxstart停止/etc/init.d/nginxstop重启/etc/init.d/nginxrestart启载/etc/init.d/nginxreloadnginx配置文件/www/server/nginx/conf/nginx.confApache服务管理apache安装目录/www/server/httpd启动/etc/init.d/httpdstart停止/etc/init.d/httpdstop重启/etc/init.d/httpdrestart启载/etc/init.d/httpdreloadapache配置文件/www/server/apache/conf/httpd.confMySQL服务管理mysql安装目录/www/server/mysqlphpmyadmin安装目录/www/server/phpmyadmin数据存储目录/www/server/data启动/etc/init.d/mysqldstart停止/etc/init.d/mysqldstop重启/etc/init.d/mysqldrestart启载/etc/init.d/mysqldreloadmysql配置文件/etc/my.cnfFTP服务管理ftp安装目录/www/server/pure-ftpd启动/etc/init.d/pure-ftpdstart停止/etc/init.d/pure-ftpdstop重启/etc/init.d/pure-ftpdrestartftp配置文件/www/server/pure-ftpd/etc/pure-ftpd.confPHP服务管理php安装目录/www/server/php启动(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54start)/etc/init.d/php-fpm-{52|53|54|55|56|70|71}start停止(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54stop)/etc/init.d/php-fpm-{52|53|54|55|56|70|71}stop重启(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54restart)/etc/init.d/php-fpm-{52|53|54|55|56|70|71}restart启载(请根据安装PHP版本号做更改,例如:/etc/init.d/php-fpm-54reload)/etc/init.d/php-fpm-{52|53|54|55|56|70|71}reload配置文件(请根据安装PHP版本号做更改,例如:/www/server/php/52/etc/php.ini)/www/server/php/{52|53|54|55|56|70|71}/etc/php.iniRedis服务管理redis安装目录/www/server/redis启动/etc/init.d/redisstart停止/etc/init.d/redisstopredis配置文件/www/server/redis/redis.confMemcached服务管理memcached安装目录/usr/local/memcached启动/etc/init.d/memcachedstart停止/etc/init.d/memcachedstop重启/etc/init.d/memcachedrestart启载/etc/init.d/memcachedreload

技术教程

众所周知,阿里云、腾讯云的服务器都自带监控(AliYunDun/阿里云盾/安骑士教程),大家都不想自己的所作所为都被监控着,比如我在上面安装SS服务,一旦云监控查到,会被警告,很麻烦,我们总想着自己买的东西能够完全自己做主,所以我们需要让他的监控失效,卸载监控!第一步:SSH连接阿里云服务器,在终端中输入下方命令,进行卸载AliYunDun操作wgetchmod+xuninstall.sh./uninstall.shwgetchmod+xquartz_uninstall.sh./quartz_uninstall.sh第二步:继续在终端中输入下发命令,删除AliYunDun残留pkillaliyun-servicerm-fr/etc/init.d/agentwatch/usr/sbin/aliyun-servicerm-rf/usr/local/aegis*第三步:继续删除阿里云盾残留iptables-IINPUT-s140.205.201.0/28-jDROPiptables-IINPUT-s140.205.201.16/29-jDROPiptables-IINPUT-s140.205.201.32/28-jDROPiptables-IINPUT-s140.205.225.192/29-jDROPiptables-IINPUT-s140.205.225.200/30-jDROPiptables-IINPUT-s140.205.225.184/29-jDROPiptables-IINPUT-s140.205.225.183/32-jDROPiptables-IINPUT-s140.205.225.206/32-jDROPiptables-IINPUT-s140.205.225.205/32-jDROPiptables-IINPUT-s140.205.225.195/32-jDROPiptables-IINPUT-s140.205.225.204/32-jDROP至此,以上步骤执行过后我们就将监控卸载完毕了。至于腾讯云,操作方法也一样。第一步:在默认安装系统的时候不要勾选安全云镜和安全监控软件第二步:如果安装了监控软件后如何卸载,操作如下:/usr/local/qcloud/stargate/admin/uninstall.sh/usr/local/qcloud/YunJing/uninst.sh/usr/local/qcloud/monitor/barad/admin/uninstall.sh这样,腾讯的监控就卸载完了。