{"id":5011,"date":"2022-01-17T16:27:51","date_gmt":"2022-01-17T08:27:51","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=5011"},"modified":"2022-01-17T16:27:51","modified_gmt":"2022-01-17T08:27:51","slug":"%e5%ae%9d%e5%a1%94%e9%9d%a2%e6%9d%bflinux%e5%91%bd%e4%bb%a4%e5%a4%a7%e5%85%a8","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/5011.html","title":{"rendered":"\u5b9d\u5854\u9762\u677flinux\u547d\u4ee4\u5927\u5168"},"content":{"rendered":"

\u5b89\u88c5\u5b9d\u5854<\/h2>\n
Centos\u5b89\u88c5\u811a\u672c<\/div>\n
\n
yum install -y wget && wget -O install.sh http:\/\/download.bt.cn\/install\/install_6.0.sh && sh install.sh<\/pre>\n

Ubuntu\/Deepin\u5b89\u88c5\u811a\u672c<\/p>\n

wget -O install.sh http:\/\/download.bt.cn\/install\/install-ubuntu_6.0.sh && sudo bash install.sh<\/pre>\n

Debian\u5b89\u88c5\u811a\u672c<\/p>\n

wget -O install.sh http:\/\/download.bt.cn\/install\/install-ubuntu_6.0.sh && bash install.sh<\/pre>\n

Fedora\u5b89\u88c5\u811a\u672c<\/p>\n

wget -O install.sh http:\/\/download.bt.cn\/install\/install_6.0.sh && bash install.sh<\/pre>\n<\/div>\n

<\/a><\/p>\n

\u7ba1\u7406\u5b9d\u5854<\/h2>\n
\n

\u5b9d\u5854\u5de5\u5177\u7bb1(\u5305\u542b\u4e0b\u5217\u7edd\u5927\u90e8\u5206\u529f\u80fd \u76f4\u63a5ssh\u4e2d\u6267\u884cbt\u547d\u4ee4 \u4ec5\u96506.x\u4ee5\u4e0a\u7248\u672c\u9762\u677f)<\/span><\/p>\n

bt<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/bt stop<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/bt start<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/bt restart<\/pre>\n

\u5378\u8f7d<\/p>\n

\/etc\/init.d\/bt stop && chkconfig --del bt && rm -f \/etc\/init.d\/bt && rm -rf \/www\/server\/panel<\/pre>\n

\u67e5\u770b\u5f53\u524d\u9762\u677f\u7aef\u53e3<\/p>\n

cat \/www\/server\/panel\/data\/port.pl<\/pre>\n

\u4fee\u6539\u9762\u677f\u7aef\u53e3\uff0c\u5982\u8981\u6539\u62108881\uff08centos 6 \u7cfb\u7edf\uff09<\/p>\n

echo '8881' > \/www\/server\/panel\/data\/port.pl && \/etc\/init.d\/bt restart\r\niptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 8881 -j ACCEPT\r\nservice iptables save\r\nservice iptables restart<\/pre>\n

\u4fee\u6539\u9762\u677f\u7aef\u53e3\uff0c\u5982\u8981\u6539\u62108881\uff08centos 7 \u7cfb\u7edf\uff09<\/p>\n

echo '8881' > \/www\/server\/panel\/data\/port.pl && \/etc\/init.d\/bt restart\r\nfirewall-cmd --permanent --zone=public --add-port=8881\/tcp\r\nfirewall-cmd --reload<\/pre>\n

\u5f3a\u5236\u4fee\u6539MySQL\u7ba1\u7406(root)\u5bc6\u7801\uff0c\u5982\u8981\u6539\u6210123456<\/p>\n

cd \/www\/server\/panel && python tools.py root 123456<\/pre>\n

\u4fee\u6539\u9762\u677f\u5bc6\u7801\uff0c\u5982\u8981\u6539\u6210123456<\/p>\n

cd \/www\/server\/panel && python tools.py panel 123456<\/pre>\n

\u67e5\u770b\u5b9d\u5854\u65e5\u5fd7<\/p>\n

cat \/tmp\/panelBoot.pl<\/pre>\n

\u67e5\u770b\u8f6f\u4ef6\u5b89\u88c5\u65e5\u5fd7<\/p>\n

cat \/tmp\/panelExec.log<\/pre>\n

\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u4f4d\u7f6e<\/p>\n

\/www\/server\/panel\/vhost<\/pre>\n

\u5220\u9664\u57df\u540d\u7ed1\u5b9a\u9762\u677f<\/p>\n

rm -f \/www\/server\/panel\/data\/domain.conf<\/pre>\n

\u6e05\u7406\u767b\u9646\u9650\u5236<\/p>\n

rm -f \/www\/server\/panel\/data\/*.login<\/pre>\n

\u67e5\u770b\u9762\u677f\u6388\u6743IP<\/p>\n

cat \/www\/server\/panel\/data\/limitip.conf<\/pre>\n

\u5173\u95ed\u8bbf\u95ee\u9650\u5236<\/p>\n

rm -f \/www\/server\/panel\/data\/limitip.conf<\/pre>\n

\u67e5\u770b\u8bb8\u53ef\u57df\u540d<\/p>\n

cat \/www\/server\/panel\/data\/domain.conf<\/pre>\n

\u5173\u95ed\u9762\u677fSSL<\/p>\n

rm -f \/www\/server\/panel\/data\/ssl.pl && \/etc\/init.d\/bt restart<\/pre>\n

\u67e5\u770b\u9762\u677f\u9519\u8bef\u65e5\u5fd7<\/p>\n

cat \/tmp\/panelBoot<\/pre>\n

\u67e5\u770b\u6570\u636e\u5e93\u9519\u8bef\u65e5\u5fd7<\/p>\n

cat \/www\/server\/data\/*.err<\/pre>\n

\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55(nginx)<\/p>\n

\/www\/server\/panel\/vhost\/nginx<\/pre>\n

\u7ad9\u70b9\u914d\u7f6e\u6587\u4ef6\u76ee\u5f55(apache)<\/p>\n

\/www\/server\/panel\/vhost\/apache<\/pre>\n

\u7ad9\u70b9\u9ed8\u8ba4\u76ee\u5f55<\/p>\n

\/www\/wwwroot<\/pre>\n

\u6570\u636e\u5e93\u5907\u4efd\u76ee\u5f55<\/p>\n

\/www\/backup\/database<\/pre>\n

\u7ad9\u70b9\u5907\u4efd\u76ee\u5f55<\/p>\n

\/www\/backup\/site<\/pre>\n

\u7ad9\u70b9\u65e5\u5fd7<\/p>\n

\/www\/wwwlogs<\/pre>\n<\/div>\n

<\/a><\/p>\n

Nginx\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

nginx\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/nginx<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/nginx start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/nginx stop<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/nginx restart<\/pre>\n

\u542f\u8f7d<\/p>\n

\/etc\/init.d\/nginx reload<\/pre>\n

nginx\u914d\u7f6e\u6587\u4ef6<\/p>\n

\/www\/server\/nginx\/conf\/nginx.conf<\/pre>\n<\/div>\n

<\/a><\/p>\n

Apache\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

apache\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/httpd<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/httpd start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/httpd stop<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/httpd restart<\/pre>\n

\u542f\u8f7d<\/p>\n

\/etc\/init.d\/httpd reload<\/pre>\n

apache\u914d\u7f6e\u6587\u4ef6<\/p>\n

\/www\/server\/apache\/conf\/httpd.conf<\/pre>\n<\/div>\n

<\/a><\/p>\n

MySQL\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

mysql\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/mysql<\/pre>\n

phpmyadmin\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/phpmyadmin<\/pre>\n

\u6570\u636e\u5b58\u50a8\u76ee\u5f55<\/p>\n

\/www\/server\/data<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/mysqld start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/mysqld stop<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/mysqld restart<\/pre>\n

\u542f\u8f7d<\/p>\n

\/etc\/init.d\/mysqld reload<\/pre>\n

mysql\u914d\u7f6e\u6587\u4ef6<\/p>\n

\/etc\/my.cnf<\/pre>\n<\/div>\n

<\/a><\/p>\n

FTP\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

ftp\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/pure-ftpd<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/pure-ftpd start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/pure-ftpd stop<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/pure-ftpd restart<\/pre>\n

ftp\u914d\u7f6e\u6587\u4ef6<\/p>\n

\/www\/server\/pure-ftpd\/etc\/pure-ftpd.conf<\/pre>\n<\/div>\n

<\/a><\/p>\n

PHP\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

php\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/php<\/pre>\n

\u542f\u52a8(\u8bf7\u6839\u636e\u5b89\u88c5PHP\u7248\u672c\u53f7\u505a\u66f4\u6539\uff0c\u4f8b\u5982\uff1a\/etc\/init.d\/php-fpm-54 start)<\/span><\/p>\n

\/etc\/init.d\/php-fpm-{52|53|54|55|56|70|71|72|73|74} start<\/pre>\n

\u505c\u6b62(\u8bf7\u6839\u636e\u5b89\u88c5PHP\u7248\u672c\u53f7\u505a\u66f4\u6539\uff0c\u4f8b\u5982\uff1a\/etc\/init.d\/php-fpm-54 stop)<\/span><\/p>\n

\/etc\/init.d\/php-fpm-{52|53|54|55|56|70|71|72|73|74} stop<\/pre>\n

\u91cd\u542f(\u8bf7\u6839\u636e\u5b89\u88c5PHP\u7248\u672c\u53f7\u505a\u66f4\u6539\uff0c\u4f8b\u5982\uff1a\/etc\/init.d\/php-fpm-54 restart)<\/span><\/p>\n

\/etc\/init.d\/php-fpm-{52|53|54|55|56|70|71|72|73|74} restart<\/pre>\n

\u542f\u8f7d(\u8bf7\u6839\u636e\u5b89\u88c5PHP\u7248\u672c\u53f7\u505a\u66f4\u6539\uff0c\u4f8b\u5982\uff1a\/etc\/init.d\/php-fpm-54 reload)<\/span><\/p>\n

\/etc\/init.d\/php-fpm-{52|53|54|55|56|70|71|72|73|74} reload<\/pre>\n

\u914d\u7f6e\u6587\u4ef6(\u8bf7\u6839\u636e\u5b89\u88c5PHP\u7248\u672c\u53f7\u505a\u66f4\u6539\uff0c\u4f8b\u5982\uff1a\/www\/server\/php\/52\/etc\/php.ini)<\/span><\/p>\n

\/www\/server\/php\/{52|53|54|55|56|70|71|72|73|74}\/etc\/php.ini<\/pre>\n<\/div>\n

<\/a><\/p>\n

Redis\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

redis\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/www\/server\/redis<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/redis start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/redis stop<\/pre>\n

redis\u914d\u7f6e\u6587\u4ef6<\/p>\n

\/www\/server\/redis\/redis.conf<\/pre>\n<\/div>\n

<\/a><\/p>\n

Memcached\u670d\u52a1\u7ba1\u7406<\/h2>\n
\n

memcached\u5b89\u88c5\u76ee\u5f55<\/p>\n

\/usr\/local\/memcached<\/pre>\n

\u542f\u52a8<\/p>\n

\/etc\/init.d\/memcached start<\/pre>\n

\u505c\u6b62<\/p>\n

\/etc\/init.d\/memcached stop<\/pre>\n

\u91cd\u542f<\/p>\n

\/etc\/init.d\/memcached restart<\/pre>\n

\u542f\u8f7d<\/p>\n

\/etc\/init.d\/memcached reload<\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\u5b89\u88c5\u5b9d\u5854 Centos\u5b89\u88c5\u811a\u672c yum install -y wget && wget -O […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1584,1585,798],"class_list":{"0":"post-5011","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-jiaocheng","7":"tag-linux","9":"tag-798"},"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5011","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=5011"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/5011\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=5011"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=5011"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=5011"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}