Skip to content

Commit 7961b83

Browse files
author
zhangjiangbin
committed
日常开发
1 parent 7d94d86 commit 7961b83

File tree

3 files changed

+76
-27
lines changed

3 files changed

+76
-27
lines changed

.env

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
APP_NAME=Laravel
2+
APP_ENV=local
3+
APP_KEY=base64:6nNq+XYCwjwi/FQ/x9tK40ETErxtRUzLWk8Jny9bRa8=
4+
APP_DEBUG=true
5+
APP_LOG_LEVEL=debug
6+
APP_URL=http://localhost
7+
8+
DB_CONNECTION=mysql
9+
DB_HOST=127.0.0.1
10+
DB_PORT=3306
11+
DB_DATABASE=homestead
12+
DB_USERNAME=homestead
13+
DB_PASSWORD=secret
14+
15+
BROADCAST_DRIVER=log
16+
CACHE_DRIVER=file
17+
SESSION_DRIVER=file
18+
QUEUE_DRIVER=sync
19+
20+
REDIS_HOST=127.0.0.1
21+
REDIS_PASSWORD=null
22+
REDIS_PORT=6379
23+
24+
MAIL_DRIVER=smtp
25+
MAIL_HOST=smtp.mailtrap.io
26+
MAIL_PORT=2525
27+
MAIL_USERNAME=null
28+
MAIL_PASSWORD=null
29+
MAIL_ENCRYPTION=null
30+
31+
PUSHER_APP_ID=
32+
PUSHER_APP_KEY=
33+
PUSHER_APP_SECRET=

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,3 @@
88
Homestead.json
99
Homestead.yaml
1010
npm-debug.log
11-
.env

readme.md

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,14 @@ https://github.com/ssrpanel/ssrpanel/wiki/VPS%E6%8E%A8%E8%8D%90
4444
|Sunny Woon| ¥10|
4545
|aazzpp678 | ¥26|
4646
|风云_1688|¥15|
47-
截止目前收到的捐赠:¥389
47+
|Royal|¥25|
48+
截止目前收到的捐赠:¥414
4849
这些捐赠的用途:
4950
1.买了1台VPS做开发测试用
5051
2.一个Beyond Compare 4的正版激活码(2017-10-01)
5152
3.谢谢大家及时反馈BUG,发现BUG请提到issue里
53+
4.感谢网友支持一个台Azure给我开发测试用
54+
开发测试环境:http://13.76.162.123
5255

5356

5457
#### PHP7环境配置
@@ -62,25 +65,22 @@ Laravel 5.4 + Metronic 4.7
6265
````
6366
cd /home/wwwroot/
6467
git clone https://github.com/ssrpanel/ssrpanel.git
65-
cd ssrpanel/
66-
php composer.phar install
67-
cp .env.example .env
68-
php artisan key:generate
69-
chown -R www:www storage/
70-
chmod -R 777 storage/
71-
````
68+
```
7269
73-
#### 配置
70+
#### 配置数据库
7471
````
7572
mysql 创建一个数据库,然后自行导入sql\db.sql
76-
config\app.php debug开始或者关闭调试模式
7773
config\database.php mysql选项自行配置数据库
7874
确保 storage/framework 下有 cache sessions views 三个目录,且 storage 有777权限
7975
````
8076
81-
#### 发送邮件配置
82-
````
83-
config\mail.php 修改其中的配置
77+
#### 配置一下
78+
```
79+
cd ssrpanel/
80+
php composer.phar install
81+
php artisan key:generate
82+
chown -R www:www storage/
83+
chmod -R 777 storage/
8484
````
8585

8686
#### NGINX配置文件加入
@@ -90,16 +90,31 @@ location / {
9090
}
9191
````
9292

93-
#### 重新加载NGINX
93+
#### 重启NGINX和PHP-FPM
9494
````
95-
service nginx reload
95+
service nginx restart
96+
service php-fpm restart
9697
````
9798

98-
## SSR服务端
99+
#### 出现500错误
99100
````
100-
把 server 目录下的 ssr-3.4.0.zip 拷贝到 /root/,解压缩,怎么运行自己上网搜
101-
把 userapiconfig.py 里的 API_INTERFACE 设置为 glzjinmod
102-
把 user-config.json 里的 connect_verbose_info 设置为 1
101+
理论上操作到上面那些步骤完了应该是可以正常访问网站了,如果网站出现500错误,请看WIKI,很有可能是fastcgi的错误
102+
请看WIKI:https://github.com/ssrpanel/ssrpanel/wiki/%E5%87%BA%E7%8E%B0-open_basedir%E9%94%99%E8%AF%AF
103+
修改完记得重启NGINX和PHP-FPM
104+
````
105+
106+
## 定时任务(所有自动发邮件的地方都要用到,所以请务必配置)
107+
````
108+
编辑crontab
109+
crontab -e
110+
111+
然后加入如下(请自行修改ssrpanel路径)
112+
* * * * * php /home/wwwroot/ssrpanel/artisan schedule:run >> /dev/null 2>&1
113+
````
114+
115+
#### 发送邮件配置
116+
````
117+
config\mail.php 修改其中的配置
103118
````
104119

105120
## 日志分析(目前仅支持单机单节点)
@@ -111,13 +126,16 @@ ln -S ssserver.log /root/shadowsocksr/ssserver.log
111126
chown www:www ssserver.log
112127
````
113128

114-
## 定时任务(所有自动发邮件的地方都要用到,所以请务必配置)
129+
## SSR
115130
````
116-
编辑crontab
117-
crontab -e
118-
119-
然后加入如下(请自行修改ssrpanel路径)
120-
* * * * * php /home/wwwroot/ssrpanel/artisan schedule:run >> /dev/null 2>&1
131+
cp server/ssr-3.4.0.zip /root/
132+
cd /root
133+
unzip ssr-3.4.0.zip
134+
cd shadowsocksr
135+
sh initcfg.sh
136+
把 userapiconfig.py 里的 API_INTERFACE 设置为 glzjinmod
137+
把 user-config.json 里的 connect_verbose_info 设置为 1
138+
配置 usermysql.json 里的数据库链接,NODE_ID就是节点ID,对应面板后台里添加的节点的自增ID
121139
````
122140

123141
## 说明
@@ -133,7 +151,6 @@ crontab -e
133151
8.后台一键添加加密方式、混淆、协议
134152
9.强大的后台配置功能
135153
10.更多功能自己发掘
136-
11.ssrpanel的定位:比sspanel强大,比sspanel mod弱鸡
137154
````
138155

139156
![Markdown](http://i4.bvimg.com/1949/aac73bf589fbd785.png)

0 commit comments

Comments
 (0)