去评论
TC辅助网

SSPanel-Metron前端部署教程

云曦☆初恋
2022/07/08 00:11:46
鍐欏湪鍓嶉潰

SSPanel-Metron涓篏ithub寮婧愰」鐩紝鐩墠鐢盉obS9缁存姢寮鍙戜腑

鏁欑▼姝f枃:

鍑嗗宸ヤ綔

灏嗘満鍣ㄧ殑IP涓庡煙鍚嶈繘琛岀粦瀹

1.閰嶇疆aaPanel
浣犻渶瑕佸湪 aaPanel 閫夋嫨浣犵殑绯荤粺鑾峰緱瀹夎鏂瑰紡銆傝繖閲屼互 CentOS 7+ 浣滀负绯荤粺鐜杩涜瀹夎銆

鈿狅笍璇峰姟蹇呬娇鐢 CentOS 7+ 瀹夎aaPanel锛屽叾浠栫郴缁熷彲鑳戒細鏈夋湭鐭ラ棶棰樸

  1. // 鏈鏂鑴氭湰鍙互鍦╝aPanel瀹樼綉鑾峰彇
  2. yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh

鎵ц瀹屾瘯鍚庯紝浼氭樉绀虹被浼间笅闈㈢殑瀹濆闈㈡澘鐨勭櫥褰曚俊鎭紝璇蜂繚瀛樺ソ姝や俊鎭

  1. Bt-Panel: http://xxx.xxx.xx.xx:8888/xxxxxxx
  2. username: xxxxxxx
  3. password: xxxxxxxx

瀹夎瀹屾垚鍚庢垜浠櫥闄 aaPanel 杩涜鐜鐨勫畨瑁呫
閫夋嫨浣跨敤LNMP鐨勭幆澧冨畨瑁呮柟寮忓嬀閫夊涓嬩俊鎭

鈽戯笍 Nginx 1.17
鈽戯笍 MySQL 5.6
鈽戯笍 PHP 7.2

閫夋嫨 Fast 蹇熺紪璇戝悗杩涜瀹夎銆
闇瑕佷竴娈垫椂闂存墠鑳藉畨瑁呭畬鎴愶紝璇风瓑寰呭畬鎴愩

2.閰嶇疆PHP
鎵撳紑 aaPanel 闈㈡澘 > App Store > 浣犲畨瑁呯殑PHP > Setting锛屽湪 Disabled functions涓鏍忓垹闄 system銆乸roc_open銆乸roc_get_status銆乸utenv銆乸cntl_signal銆

3.瀹夎Metron涓婚
aaPanel 闈㈡澘 > Website > Add site銆傝緭鍏ヤ綘鐨勫煙鍚嶅拰寤轰竴涓暟鎹簱锛岀偣鍑绘彁浜

  1. cd /www/wwwroot/浣犵殑缃戠珯鏂囦欢澶瑰悕

涓婁紶鎮ㄧ殑婧愮爜

涓婁紶鎮ㄧ殑婧愮爜

婧愮爜github 瀹樼綉 锛BobCoderS9/SSPanel-Metron: SSPanel-Metron涓婚锛岀洰鍓嶇敱@Bobs9缁存姢寮鍙戜腑銆 (github.com)

鎴栧畼缃戜笅杞介摼鎺鐐瑰嚮涓嬭浇

锛堝洜涓轰竴浜涘師鍥狅紝涓嶅啀鎻愪緵鏃х増婧愮爜锛岃鍓嶅幓GitHub鑷涓嬭浇鏈鏂扮増锛岄渶瑕佹坊鍔燪Q瀹㈡湇鎺ュ彛锛屼笅杞menu.tpl 鑷鏇挎崲

浣跨敤composer瀹夎渚濊禆

  1. wget https://getcomposer.org/installer -O composer.phar
  2. php composer.phar
  3. php composer.phar install

鐢╟omposer瀹夎渚濊禆鏃跺鏋滃唴瀛樹笉澶熺殑璇濓紝鍙互浣跨敤 瀹濆闈㈢増 > 棣栭〉 > Linux宸ュ叿绠 > Swap/铏氭嫙鍐呭瓨 澧炲姞铏氭嫙鍐呭瓨

4.澶嶅埗閰嶇疆鏂囦欢
  1. cp config/.config.example.php config/.config.php
  2. cp config/.metron_setting.example.php config/.metron_setting.php
  3. cp config/appprofile.example.php config/appprofile.php


5.閰嶇疆绔欑偣鐩綍鍙婁吉闈欐
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > Site directory > Running directory 閫夋嫨 /public 淇濆瓨銆
鍙栨秷鍕鹃 闃茶法绔欐敾鍑汇
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > URL rewrite 濉叆浼潤鎬佷俊鎭

  1. location / {
  2. try_files $uri /index.php$is_args$args;
  3. }


鍦⊿SH閲岀殑缃戠珯鐩綍涓嬫墽琛岋紝缁欑綉绔欐枃浠755鏉冮檺

  1. cd ../
  2. chmod -R 755 浣犵殑鏂囦欢澶瑰悕/
  3. chown -R www:www 浣犵殑鏂囦欢澶瑰悕/


6.鏁版嵁搴撴搷浣
棣栨杩佺Щ: 瀵煎叆缃戠珯鐩綍涓嬬殑sql/metron.sql 鏂囦欢

7.淇敼鏍圭洰褰曢厤缃枃浠
缂栬緫 config.php
灏嗕綘鐨勬暟鎹簱鍚嶅瓧锛岀敤鎴峰悕鍜屽瘑鐮佸~鍏.config.php閲岋紝绫讳技涓嬮潰杩欐牱

  1. $_ENV['baseUrl'] = 'https://www.xxxx.com'; //绔欑偣鍦板潃
  2. $_ENV['db_database'] = 'sspanel'; //鏁版嵁搴撳悕
  3. $_ENV['db_username'] = 'sspanel'; //鏁版嵁搴撶敤鎴峰悕
  4. $_ENV['db_password'] = 'sspanel_password'; //鐢ㄦ埛鍚嶅搴旂殑瀵嗙爜


鍒涘缓绠$悊鍛璐﹀彿浠ュ強鍏跺畠鍒濆鍖栧伐浣

  1. cd /www/wwwroot/鍩熷悕/
  2. php xcat User createAdmin
  3. php xcat User resetTraffic
  4. php xcat SyncRadius syncusers
  5. php xcat Tool initQQWry
  6. php xcat Tool initdownload


8.浣跨敤瀹濆闈㈡澘鐨勮鍒掍换鍔¢厤缃

  1. 姣忔棩浠诲姟 (蹇呴』)
  2. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  3. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  4. 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
  5. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job DailyJob

  6. 妫娴嬩换鍔 (蹇呴』)
  7. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  8. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  9. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  10. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job CheckJob

  11. 鐢ㄦ埛璐︽埛鐩稿叧浠诲姟 (蹇呴』)
  12. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  13. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  14. 鎵ц鍛ㄦ湡锛氭瘡灏忔椂
  15. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job UserJob

  16. 瀹氭椂妫娴嬮偖浠堕槦鍒 (蹇呴』)
  17. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  18. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  19. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  20. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job SendMail

  21. 姣忔棩娴侀噺鎶ュ憡 (缁欏紑鍚瘡鏃ラ偖浠剁殑鐢ㄦ埛鍙戦侀偖浠)
  22. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  23. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  24. 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
  25. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SendDiaryMail

  26. 瀹¤灏佺 (寤鸿璁剧疆)
  27. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  28. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  29. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  30. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat DetectBan

  31. 妫娴嬭澧 (鍙)
  32. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  33. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  34. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  35. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat DetectGFW

  36. Radius (鍙)
  37. synclogin
  38. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  39. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  40. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  41. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius synclogin

  42. syncvpn
  43. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  44. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  45. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  46. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius syncvpn

  47. syncnas
  48. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  49. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  50. 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
  51. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius syncnas
  52. 鑷姩澶囦唤 (鍙)

  53. 鏁翠綋澶囦唤
  54. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  55. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  56. 鎵ц鍛ㄦ湡锛氳嚜宸辫缃, 鍙互璁剧疆姣30鍒嗛挓宸﹀彸
  57. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Backup full

  58. 鍙浠芥牳蹇冩暟鎹
  59. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  60. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  61. 鎵ц鍛ㄦ湡锛氳嚜宸辫缃, 鍙互璁剧疆姣30鍒嗛挓宸﹀彸
  62. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Backup simple
  63. 璐㈠姟鎶ヨ〃 (鍙)

  64. 鏃ユ姤
  65. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  66. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  67. 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
  68. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail day

  69. 鍛ㄦ姤
  70. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  71. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  72. 鎵ц鍛ㄦ湡锛氭瘡鏄熸湡 鍛ㄦ棩 0 灏忔椂 0 鍒嗛挓
  73. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail week

  74. 鏈堟姤
  75. 浠诲姟绫诲瀷锛歋hell 鑴氭湰
  76. 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
  77. 鎵ц鍛ㄦ湡锛氭瘡鏈 1 鏃 0 灏忔椂 0 鍒嗛挓
  78. 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail month