Skip to content

Commit 11cb846

Browse files
committed
修改
1 parent 1eb4f64 commit 11cb846

File tree

4 files changed

+114
-16
lines changed

4 files changed

+114
-16
lines changed

README_4x.md

+104
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
## mdserver(mac版) 4.0.2.0
2+
3+
Mac上高度可定制的PHP开发环境,集成必要的扩展,方便使用。
4+
(pkg安装方式),安装方便,是你Mac上的PHP开发利器。
5+
6+
7+
- 支持80端口。
8+
- OpenResty(1.15.8.3)支持Lua开发。
9+
- Redis(7.0.4),MongoDB(5.0.0),Memcached(1.6.17)。
10+
- **php-fpm以sock文件方式管理。多php进程共存,快速切换开发。**
11+
- **高效控制PHP扩展安装、启动、停止、卸载。**
12+
- **完美再现安装过程,利于学习。**
13+
- 安装完全脚本化,易于管理。
14+
- 减小文件大小,利于下载。
15+
- 支持PHP版本菜单[Command]下直接进入命令行,并自动设置当前PHP变量。
16+
- 支持CMD菜单下应用的安装、启动、停止、卸载。
17+
18+
## PHP|MYSQL
19+
20+
- ***PHP版本集成***
21+
22+
```
23+
php[55,56,71,72,73,74,80,81,82]
24+
[redis,memecached,mongo,memcached,yaf,swoole,xhprof,...]
25+
```
26+
27+
- ***MYSQL版本集成***
28+
29+
```
30+
MySQL[50,51,55,56,57,80]
31+
```
32+
33+
### ***phpMyAdmin***
34+
35+
根据选中php版本,自动识别打开版本。需要试用mysql默认以外的版本,需要修改phpMyAdmin相应配置问题。
36+
37+
```
38+
version 4.1.9 , 能登入mysql{50-57}, 需要php<70 , 默认mysql56 , 端口:3356 | http://localhost:8888/phpMyAdmin/
39+
version 5.1.1 , 能登入mysql{55-80}, 需要php>70 , 默认mysql80 , 端口:3306 | http://localhost:8888/phpMyAdmin7/
40+
```
41+
42+
### 下载链接
43+
44+
- 4.0.2.0[500+MB] - [官方下载](https://github.com/midoks/mdserver-mac/releases/download/4.0.2.0/mdserver4.0.2.0.mpkg.zip)
45+
46+
```
47+
下载版本中,mysql80集成。其他皆需要现在执行Install,再执行。
48+
为了全版本兼容,可同时开始开启。端口默认如下,也可以自定义。
49+
MySQL51 - port:3351
50+
MySQL55 - port:3355
51+
MySQL56 - port:3356
52+
MySQL57 - port:3357
53+
MySQL80 - port:3306
54+
```
55+
56+
### 相关项目
57+
58+
- 最新的安装脚本[mdserver-mac-reinstall](https://github.com/midoks/mdserver-mac-reinstall)对应目录->[/Applications/mdserver/bin/reinstall]
59+
60+
### 重要操作说明
61+
62+
```
63+
菜单[CMD]->php-ext-init->install(解决大部分的依赖问题)
64+
```
65+
66+
### 安装失败
67+
- 安装失败是获取权限脚本没有执行成功,执行下面命令即可:
68+
```
69+
sudo sh /Applications/mdserver/install.sh
70+
```
71+
72+
### 版本版本
73+
74+
- 4.0.2.0
75+
76+
```
77+
* 修复Sequel Pro打开问题。
78+
* 加入PHP82版本。
79+
* 更新memcached,redis。
80+
```
81+
82+
### 文件说明
83+
- host(修改hosts命令)
84+
- mdserver(主功能)
85+
- Screenshot(截图)
86+
87+
88+
### 最新版本截图
89+
90+
[![菜单](/Screenshot/Screenshot_menu.png)](/Screenshot/Screenshot_menu.png)
91+
[![界面](/Screenshot/Screenshot_3.png)](/Screenshot/Screenshot_3.png)
92+
93+
94+
95+
### 联系我
96+
- email:midoks@163.com
97+
98+
### Stargazers over time
99+
100+
[![Stargazers over time](https://starchart.cc/midoks/mdserver-mac.svg)](https://starchart.cc/midoks/mdserver-mac)
101+
102+
### License
103+
104+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fmidoks%2Fmdserver-mac.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fmidoks%2Fmdserver-mac?ref=badge_shield)

mdserver/mdserver/AppDelegate.m

+5-12
Original file line numberDiff line numberDiff line change
@@ -600,15 +600,8 @@ -(IBAction)goMySQL:(id)sender
600600
{
601601
NSString *title = [pStartTitle stringValue];
602602
if ([title isEqual:@"stop"]) {
603-
604-
NSString *phpVer = [NSCommon getCommonConfig:@"selectPhpVer"];
605-
606-
if ([phpVer intValue]>70){
607-
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://localhost:8888/phpMyAdmin7/"]];
608-
} else {
609-
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://localhost:8888/phpMyAdmin/"]];
610-
}
611-
603+
// NSString *phpVer = [NSCommon getCommonConfig:@"selectPhpVer"];
604+
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"http://localhost:8888/phpMyAdmin/"]];
612605
}else{
613606
[self alert:@"web服务未启动"];
614607
}
@@ -1436,7 +1429,7 @@ -(void)phpExtStatusSet:(id)sender
14361429
shName = @"unload";
14371430
}
14381431

1439-
NSString *installSh = [NSString stringWithFormat:@"%@bin/reinstall/php%@/%@/%@.sh", rootDir, ppMenu.title,cMenu.title, shName];
1432+
NSString *installSh = [NSString stringWithFormat:@"%@bin/reinstall/extensions/%@/%@.sh", rootDir,cMenu.title, shName];
14401433
if (![NSCommon fileIsExists:installSh]){
14411434
[self userCenter:[NSString stringWithFormat:@"PHP%@-%@扩展%@脚本不存在!", ppMenu.title,cMenu.title,shName]];
14421435
return;
@@ -2084,8 +2077,8 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
20842077
[self installHelp];
20852078

20862079
//初始化php版本信息
2087-
[NSCommon setCommonConfig:PHP_C_VER_KEY value:@"55"];
2088-
[NSCommon setCommonConfig:PHP_S_VER_KEY value:@"71"];
2080+
[NSCommon setCommonConfig:PHP_C_VER_KEY value:@"71"];
2081+
[NSCommon setCommonConfig:PHP_S_VER_KEY value:@"81"];
20892082
[NSCommon setCommonConfig:MYSQL_C_VER_KEY value:@"80"];
20902083
[NSCommon setCommonConfig:@"isOpenModMySQLPwdWindow" value:@"no"];
20912084

mdserver/mdserver/Controller/HostNameController.m

+3-3
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ -(IBAction)add:(id)sender
160160
{
161161
NSString *hostname = [NSString stringWithFormat:@"host-%ld", [_list count]+1];
162162
NSString *port = _gPort.stringValue;
163-
NSString *php = @"55";
163+
NSString *php = @"71";
164164
[_serverName setStringValue:hostname];
165165
[_serverPort setStringValue:port];
166166
[_serverPHPVer setStringValue:php];
@@ -236,11 +236,11 @@ -(void)reloadListData
236236
{
237237
NSString *urlstr = [NSString stringWithFormat:@"%@htdocs/www/", str];
238238
[[listContent objectForKey:pos] setObject:urlstr forKey:@"path"];
239-
[[listContent objectForKey:pos] setObject:@"55" forKey:@"php"];
239+
[[listContent objectForKey:pos] setObject:@"71" forKey:@"php"];
240240
}
241241

242242
if (![[listContent objectForKey:pos] objectForKey:@"php"]){
243-
[[listContent objectForKey:pos] setObject:@"55" forKey:@"php"];
243+
[[listContent objectForKey:pos] setObject:@"71" forKey:@"php"];
244244
}
245245

246246
[_list addObject:t];

mdserver/mdserver/NSCommon.m

+2-1
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,11 @@ + (NSString *)getRootDir
141141
// str = [self getDirName:str];
142142
// str = [self getDirName:str];
143143
// str = [self getDirName:str];
144-
144+
//
145145
// str = [NSString stringWithFormat:@"%@/mdserver/", str];
146146
// NSLog(@"debug:%@", str);
147147
// return str;
148+
// /Users/midoks/Library/Developer/Xcode/DerivedData
148149
NSString *root_path = [NSString stringWithFormat:@"/Applications/mdserver/%@", @""];
149150
return root_path;
150151
}

0 commit comments

Comments
 (0)