1.安装宝塔Linux[root@xxxx-dzz-20~]#pipinstall--upgradepip[root@xxxx-dzz-20~]#yuminstall-ywget&&wget-Oinstall.shhttp://download.bt.cn/install/install.sh&&shinstall.sh您使用的是9.0.3版本的pip,但是可以使用20.0.2版本。你应该考虑通过'pipinstall--upgradepip'命令升级。//当如上所示,你需要升级pip*pipinstall--upgradepipBt-Panel:http://61.148.60.102:8888/0eca79f2#替换成你自己的ipusername:ysuxxlqwpassword:8bxxxdc4btLinux扩展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/bt停止启动/etc/init.d/btstartrestart/etc/init.d/btrestartuninstall/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/nginxstart/etc/init.d/nginxstartstop/etc/init.d/nginxstoprestart/etc/在里面。d/nginxrestart/etc/init.d/nginx重新加载nginx配置文件/www/server/nginx/conf/nginx.confApache服务管理apache安装目录/www/server/httpdstart/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/datastart/etc/init.d/mysqldstartstop/etc/init.d/mysqldstoprestart/etc/init.d/mysqldrestartstart/etc/init.d/mysqldreloadmysql配置文件/etc/my.cnfFTP服务管理ftp安装目录/www/server/pure-ftpdstart/etc/init.d/pure-ftpdstartstop/etc/init.d/pure-ftpdstartstop/etc/init.d/pure-ftpdstoprestart/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}startstop(请根据安装的PHP版本号进行修改,例如:/etc/init.d/php-fpm-54stop)/etc/init.d/php-fpm-{52|53|54|55|56|70|71}停止重启(请根据安装的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/redisstart/etc/init.d/redisstartstop/etc/init.d/redisstopredis配置文件/www/server/redis/redis.confmemcached服务管理memcached安装目录/usr/local/memcached启动/etc/init.d/memcached启动停止/etc/init.d/memcachedstoprestart/etc/init.d/memcachedrestartstart/etc/init.d/memcachedreload2.部署DzzOffice(Linux版)记住你的数据库密码位置/{if(!-e$request_filename){最后重写^(.*)$/index.php?s=/$1;休息;}}[root@xxxx-dzz-20~]#cd/www/wwwroot/test&&wgethttps://github.com/zyx0814/dzzoffice/archive/2.02.zip[root@xxxx-dzz-20~]#unzip2.02.zip[root@xxxx-dzz-20test]#lltotalusage80-rw-r--r--.1wwwwww479Apr213:19404.htmldrwxrwxrwx。31wwwwww4096Apr215:14admin-rw-r--r--。1wwwwww4602018年9月14日admin.php-rw-r--r--。1wwwwww17862018年9月14日avatar.phpdrwxrwxrwx。2wwwwww92Apr213:33configdrwxrwxrwx。8wwwwww1762018年9月14日core-rw-r--r--。1wwwwww1172018年9月14日crossdomain.xmldrwxrwxrwx。10wwwwww1894月2日13:35datadrwxrwxrwx。32wwwwww40964月2日15:20dzz-rw-r--r--。1wwwwww42862018年9月14日favicon.ico-rw-r--r--。1wwwwww6292018年9月14日htaccess_default.txt-rw-r--r--。1wwwwww9854月2日13:19index.html-rw-r--r--。1wwwwww4022018年9月14日index.phpdrwxrwxrwx。6wwwwww63Apr213:35install-rw-r--r--。1wwwwww27682018年9月14日安装.mddrwxrwxrwx。4wwwwww2272018年9月14日misc-rw-r--r--。1wwwwww3212018年9月14日misc.php-rw-r--r--。1wwwwww5642018年9月14日oauth.php-rw-r--r--。1wwwwww37942018年9月14日README.md-rw-r--r--。1wwwwww31572018年9月14日share.php-rw-r--r--。1wwwwww5442018年9月14日short.phpdrwxrwxrwx。24wwwwww40962018年9月14日static-rw-r--r--。1wwwwww13802018年9月14日更新.mdd??rwxrwxrwx。14wwwwww1962018年9月14日用户-rw-r--r--。1wwwwww3172018年9月14日user.php[root@xxxx-dzz-20test]#pwd/home/wwwroot/test[root@xxxx-dzz-20~]chown-Rwww:www/home/wwwroot/测试(如上配置777权限)3.配置,添加插件测试dzzofficehttp://192.168.60.146/install去安装dzzoffice访问http://192.168.60.146(如果配置域名,必须写host,并且访问时必须使用域名)网申市场:http://dzz.cc/index.php?mod=d...1。下载所需的插件2.上传到/www/wwwroot/test/admin,/www/wwwroot/test/dzz3.网盘下载地址和说明如下图:http://dzz.cc/index.php?mod=dzzmarket&op=view&mid=27&refer=index.php%3Fmod%3Ddzzmarket%26order%3Ddateline%26type%3D1%26page%3D1添加组配置共享目录权限上传测试文件登录sunzh账号测试网盘
