SSPanel-Metron前端部署教程
鍐欏湪鍓嶉潰
SSPanel-Metron涓篏ithub寮婧愰」鐩紝鐩墠鐢盉obS9缁存姢寮鍙戜腑
鏁欑▼姝f枃:
鍑嗗宸ヤ綔
灏嗘満鍣ㄧ殑IP涓庡煙鍚嶈繘琛岀粦瀹
1.閰嶇疆aaPanel
浣犻渶瑕佸湪 aaPanel 閫夋嫨浣犵殑绯荤粺鑾峰緱瀹夎鏂瑰紡銆傝繖閲屼互 CentOS 7+ 浣滀负绯荤粺鐜杩涜瀹夎銆
鈿狅笍璇峰姟蹇呬娇鐢 CentOS 7+ 瀹夎aaPanel锛屽叾浠栫郴缁熷彲鑳戒細鏈夋湭鐭ラ棶棰樸
鎵ц瀹屾瘯鍚庯紝浼氭樉绀虹被浼间笅闈㈢殑瀹濆闈㈡澘鐨勭櫥褰曚俊鎭紝璇蜂繚瀛樺ソ姝や俊鎭
瀹夎瀹屾垚鍚庢垜浠櫥闄 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銆傝緭鍏ヤ綘鐨勫煙鍚嶅拰寤轰竴涓暟鎹簱锛岀偣鍑绘彁浜
涓婁紶鎮ㄧ殑婧愮爜
涓婁紶鎮ㄧ殑婧愮爜
婧愮爜github 瀹樼綉 锛BobCoderS9/SSPanel-Metron: SSPanel-Metron涓婚锛岀洰鍓嶇敱@Bobs9缁存姢寮鍙戜腑銆 (github.com)
鎴栧畼缃戜笅杞介摼鎺鐐瑰嚮涓嬭浇
锛堝洜涓轰竴浜涘師鍥狅紝涓嶅啀鎻愪緵鏃х増婧愮爜锛岃鍓嶅幓GitHub鑷涓嬭浇鏈鏂扮増锛岄渶瑕佹坊鍔燪Q瀹㈡湇鎺ュ彛锛屼笅杞menu.tpl 鑷鏇挎崲
浣跨敤composer瀹夎渚濊禆
鐢╟omposer瀹夎渚濊禆鏃跺鏋滃唴瀛樹笉澶熺殑璇濓紝鍙互浣跨敤 瀹濆闈㈢増 > 棣栭〉 > Linux宸ュ叿绠 > Swap/铏氭嫙鍐呭瓨 澧炲姞铏氭嫙鍐呭瓨
4.澶嶅埗閰嶇疆鏂囦欢
5.閰嶇疆绔欑偣鐩綍鍙婁吉闈欐
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > Site directory > Running directory 閫夋嫨 /public 淇濆瓨銆
鍙栨秷鍕鹃 闃茶法绔欐敾鍑汇
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > URL rewrite 濉叆浼潤鎬佷俊鎭
鍦⊿SH閲岀殑缃戠珯鐩綍涓嬫墽琛岋紝缁欑綉绔欐枃浠755鏉冮檺
6.鏁版嵁搴撴搷浣
棣栨杩佺Щ: 瀵煎叆缃戠珯鐩綍涓嬬殑sql/metron.sql 鏂囦欢
7.淇敼鏍圭洰褰曢厤缃枃浠
缂栬緫 config.php
灏嗕綘鐨勬暟鎹簱鍚嶅瓧锛岀敤鎴峰悕鍜屽瘑鐮佸~鍏.config.php閲岋紝绫讳技涓嬮潰杩欐牱
鍒涘缓绠$悊鍛璐﹀彿浠ュ強鍏跺畠鍒濆鍖栧伐浣
8.浣跨敤瀹濆闈㈡澘鐨勮鍒掍换鍔¢厤缃
SSPanel-Metron涓篏ithub寮婧愰」鐩紝鐩墠鐢盉obS9缁存姢寮鍙戜腑
鏁欑▼姝f枃:
鍑嗗宸ヤ綔
灏嗘満鍣ㄧ殑IP涓庡煙鍚嶈繘琛岀粦瀹
1.閰嶇疆aaPanel
浣犻渶瑕佸湪 aaPanel 閫夋嫨浣犵殑绯荤粺鑾峰緱瀹夎鏂瑰紡銆傝繖閲屼互 CentOS 7+ 浣滀负绯荤粺鐜杩涜瀹夎銆
鈿狅笍璇峰姟蹇呬娇鐢 CentOS 7+ 瀹夎aaPanel锛屽叾浠栫郴缁熷彲鑳戒細鏈夋湭鐭ラ棶棰樸
- // 鏈鏂鑴氭湰鍙互鍦╝aPanel瀹樼綉鑾峰彇
- yum install -y wget && wget -O install.sh http://www.aapanel.com/script/install_6.0_en.sh && bash install.sh
鎵ц瀹屾瘯鍚庯紝浼氭樉绀虹被浼间笅闈㈢殑瀹濆闈㈡澘鐨勭櫥褰曚俊鎭紝璇蜂繚瀛樺ソ姝や俊鎭
- Bt-Panel: http://xxx.xxx.xx.xx:8888/xxxxxxx
- username: xxxxxxx
- 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銆傝緭鍏ヤ綘鐨勫煙鍚嶅拰寤轰竴涓暟鎹簱锛岀偣鍑绘彁浜
- cd /www/wwwroot/浣犵殑缃戠珯鏂囦欢澶瑰悕
涓婁紶鎮ㄧ殑婧愮爜
涓婁紶鎮ㄧ殑婧愮爜
婧愮爜github 瀹樼綉 锛BobCoderS9/SSPanel-Metron: SSPanel-Metron涓婚锛岀洰鍓嶇敱@Bobs9缁存姢寮鍙戜腑銆 (github.com)
鎴栧畼缃戜笅杞介摼鎺鐐瑰嚮涓嬭浇
锛堝洜涓轰竴浜涘師鍥狅紝涓嶅啀鎻愪緵鏃х増婧愮爜锛岃鍓嶅幓GitHub鑷涓嬭浇鏈鏂扮増锛岄渶瑕佹坊鍔燪Q瀹㈡湇鎺ュ彛锛屼笅杞menu.tpl 鑷鏇挎崲
浣跨敤composer瀹夎渚濊禆
- wget https://getcomposer.org/installer -O composer.phar
- php composer.phar
- php composer.phar install
鐢╟omposer瀹夎渚濊禆鏃跺鏋滃唴瀛樹笉澶熺殑璇濓紝鍙互浣跨敤 瀹濆闈㈢増 > 棣栭〉 > Linux宸ュ叿绠 > Swap/铏氭嫙鍐呭瓨 澧炲姞铏氭嫙鍐呭瓨
4.澶嶅埗閰嶇疆鏂囦欢
- cp config/.config.example.php config/.config.php
- cp config/.metron_setting.example.php config/.metron_setting.php
- cp config/appprofile.example.php config/appprofile.php
5.閰嶇疆绔欑偣鐩綍鍙婁吉闈欐
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > Site directory > Running directory 閫夋嫨 /public 淇濆瓨銆
鍙栨秷鍕鹃 闃茶法绔欐敾鍑汇
娣诲姞瀹屾垚鍚庣紪杈戞坊鍔犵殑绔欑偣 > URL rewrite 濉叆浼潤鎬佷俊鎭
- location / {
- try_files $uri /index.php$is_args$args;
- }
鍦⊿SH閲岀殑缃戠珯鐩綍涓嬫墽琛岋紝缁欑綉绔欐枃浠755鏉冮檺
- cd ../
- chmod -R 755 浣犵殑鏂囦欢澶瑰悕/
- chown -R www:www 浣犵殑鏂囦欢澶瑰悕/
6.鏁版嵁搴撴搷浣
棣栨杩佺Щ: 瀵煎叆缃戠珯鐩綍涓嬬殑sql/metron.sql 鏂囦欢
7.淇敼鏍圭洰褰曢厤缃枃浠
缂栬緫 config.php
灏嗕綘鐨勬暟鎹簱鍚嶅瓧锛岀敤鎴峰悕鍜屽瘑鐮佸~鍏.config.php閲岋紝绫讳技涓嬮潰杩欐牱
- $_ENV['baseUrl'] = 'https://www.xxxx.com'; //绔欑偣鍦板潃
- $_ENV['db_database'] = 'sspanel'; //鏁版嵁搴撳悕
- $_ENV['db_username'] = 'sspanel'; //鏁版嵁搴撶敤鎴峰悕
- $_ENV['db_password'] = 'sspanel_password'; //鐢ㄦ埛鍚嶅搴旂殑瀵嗙爜
鍒涘缓绠$悊鍛璐﹀彿浠ュ強鍏跺畠鍒濆鍖栧伐浣
- cd /www/wwwroot/鍩熷悕/
- php xcat User createAdmin
- php xcat User resetTraffic
- php xcat SyncRadius syncusers
- php xcat Tool initQQWry
- php xcat Tool initdownload
8.浣跨敤瀹濆闈㈡澘鐨勮鍒掍换鍔¢厤缃
- 姣忔棩浠诲姟 (蹇呴』)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job DailyJob
- 妫娴嬩换鍔 (蹇呴』)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job CheckJob
- 鐢ㄦ埛璐︽埛鐩稿叧浠诲姟 (蹇呴』)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡灏忔椂
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job UserJob
- 瀹氭椂妫娴嬮偖浠堕槦鍒 (蹇呴』)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Job SendMail
- 姣忔棩娴侀噺鎶ュ憡 (缁欏紑鍚瘡鏃ラ偖浠剁殑鐢ㄦ埛鍙戦侀偖浠)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SendDiaryMail
- 瀹¤灏佺 (寤鸿璁剧疆)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat DetectBan
- 妫娴嬭澧 (鍙)
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat DetectGFW
- Radius (鍙)
- synclogin
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius synclogin
- syncvpn
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius syncvpn
- syncnas
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛歂鍒嗛挓 1 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat SyncRadius syncnas
- 鑷姩澶囦唤 (鍙)
- 鏁翠綋澶囦唤
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氳嚜宸辫缃, 鍙互璁剧疆姣30鍒嗛挓宸﹀彸
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Backup full
- 鍙浠芥牳蹇冩暟鎹
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氳嚜宸辫缃, 鍙互璁剧疆姣30鍒嗛挓宸﹀彸
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat Backup simple
- 璐㈠姟鎶ヨ〃 (鍙)
- 鏃ユ姤
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡澶 0 灏忔椂 0 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail day
- 鍛ㄦ姤
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡鏄熸湡 鍛ㄦ棩 0 灏忔椂 0 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail week
- 鏈堟姤
- 浠诲姟绫诲瀷锛歋hell 鑴氭湰
- 浠诲姟鍚嶇О锛氳嚜琛屽~鍐
- 鎵ц鍛ㄦ湡锛氭瘡鏈 1 鏃 0 灏忔椂 0 鍒嗛挓
- 鑴氭湰鍐呭锛歱hp /www/wwwroot/浣犵殑缃戠珯鐩綍/xcat FinanceMail month