zend server mac 下配置
Post Installation on Mac OS X
If you intend to use PHP and other tools provided by Zend Server (pear and pecl) from the command line (PHP CLI), it is recommended that you add the <install_path>/bin directory to your $PATH environment variable.
This can be done in two ways:
- Per user profile
- For all users
The following procedure is intended for use with bash. If you are using a different shell, adjust the procedure accordingly.
|
|
To add the <install_path>/bin directory to your $PATH environment variable per user profile, issue the following command: echo 'export PATH=$PATH:/usr/local/zend/bin' >> $HOME/.bashrc To add the Zend Server library path, issue the following command: echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> $HOME/.bashrc |
|
You can now run the PHP binary provided by Zend Server without typing its full path. |
|
|
|
To add the <install_path>/bin directory to your $PATH environment variable for all users, issue the following command: echo 'export PATH=$PATH:/usr/local/zend/bin' >> /etc/profile.d/zend-server.sh To add the Zend Server library path, issue the following command: echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib' >> /etc/profile.d/zend-server.sh |
|
You can now run the PHP binary provided by Zend Server without typing its full path. |
|
因为Mac OS X上的bash是通过login的方式运行的,而man bash中写着,通过login方式登录的bash不会读取~/.bashrc。
source ~/.bashrc
解决方法:把上面的代码 添加到 ~/.bash_profile中。
echo source ~/.bashrc >> ~/.bash_profile
export PATH=/usr/local/zend/bin:/usr/local/zend/mysql/bin:$PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/zend/lib
echo 'xxxxx'|sudo -S /usr/local/zend/bin/zendctl.sh start
sudo /usr/local/zend/mysql/bin/mysql.server start
sudo /usr/local/zend/mysql/bin/mysql.server start
sudo /Library/StartupItems/ZendServer_init/ZendServer_init start
sudo /Library/StartupItems/MySql_init/MySql_init start
mysql 配置在 /usr/local/zend/mysql/data/my.cnf
-----------------------------
修改数据库存储位置
mkdir -p /Volumes/Opt/Var/mysql
mv /usr/local/zend/mysql/data/my.cnf /Volumes/Opt/Var/mysql/
sudo scripts/mysql_install_db --user=zend --datadir=/Volumes/Opt/Var/mysql --basedir=/usr/local/zend/mysql --defaults-file=/Volumes/Opt/Var/mysql/my.cnf
vi /usr/local/zend/mysql/bin/mysql.server
修改datadir = "/Volumes/Opt/Var/mysql"
/usr/local/zend/mysql/bin/mysql.server start
由于mac10.10 已经取消了startitem启动。。所以不能自启动
/Library/StartupItems/MySql_init
/Library/StartupItems/ZendServer_init
参照 : http://pikeralpha.wordpress.com/2014/06/12/yosemite-dp1-removes-systemstarter/
zend server mac 下配置的更多相关文章
- 在Mac下配置php开发环境:Apache+php+MySql
/private/etc/apache2/httpd.conf 一.启动Apache sudo apachectl start sudo apachectl -v 可以查看到Apache的版本信息 ...
- CAS (8) —— Mac下配置CAS到JBoss EAP 6.4(6.x)的Standalone模式(服务端)
CAS (8) -- Mac下配置CAS到JBoss EAP 6.4(6.x)的Standalone模式(服务端) jboss版本: jboss-eap-6.4-CVE-2015-7501 jdk版本 ...
- CAS (7) —— Mac下配置CAS 4.x的JPATicketRegistry(服务端)
CAS (7) -- Mac下配置CAS 4.x集群及JPATicketRegistry(服务端) tomcat版本: tomcat-8.0.29 jdk版本: jdk1.8.0_65 cas版本: ...
- Mac下配置Apache Httpd的Https/SSL
Mac下配置Apache Httpd的Https/SSL httpd版本: httpd-2.4.17 jdk版本: jdk1.8.0_65 参考来源: Mac下安装Apache Httpd Mac O ...
- CAS (3) —— Mac下配置CAS客户端经代理访问Tomcat CAS
CAS (3) -- Mac下配置CAS客户端经代理访问Tomcat CAS tomcat版本: tomcat-8.0.29 jdk版本: jdk1.8.0_65 nginx版本: nginx-1.9 ...
- CAS (2) —— Mac下配置CAS到Tomcat(客户端)
CAS (2) -- Mac下配置CAS到Tomcat(客户端) tomcat版本: tomcat-8.0.29 jdk版本: jdk1.8.0_65 cas版本: cas4.1.2 cas-clie ...
- Tomcat (1) —— Mac下配置Tomcat Https/SSL
Tomcat (1) -- Mac下配置Tomcat Https/SSL tomcat版本: tomcat-8.0.29 jdk版本: jdk1.8.0_65 参考来源: SSL/TLS Config ...
- 【高可用HA】Nginx (1) —— Mac下配置Nginx Http负载均衡(Load Balancer)之101实例
[高可用HA]Nginx (1) -- Mac下配置Nginx Http负载均衡(Load Balancer)之101实例 nginx版本: nginx-1.9.8 参考来源: nginx.org [ ...
- 【高可用HA】Apache (4) —— Mac下配置Apache Httpd负载均衡(Load Balancer)之mod_jk
Mac下配置Apache Httpd负载均衡(Load Balancer)之mod_jk httpd版本: httpd-2.4.17 jk版本: tomcat-connectors-1.2.41 参考 ...
随机推荐
- Hibernate查询语言
HQL(Hibernate Query Language)查询语言是完全面向对象的查询语言,它提供了更加面向对象的封装,它可以理解如多态.继承和关联的概念.HQL看上去和SQL语句相似,但它却提供了更 ...
- 如何对exec sp_who2的结果进行选择和排序?
从网上找到了下面的两个脚本, 笔者试用过, 很好. 故记在这里. 方法一, 用临时表 CREATE TABLE #sp_who2 ( SPID INT, Status VARCHAR(255), ...
- jQuery调用ajax获取json格式数据
<body> <div>点击按钮获取音乐列表</div> <input type="button" id="button&quo ...
- Voice Commands (VCD) Cortana 微软小娜示例
Cortana 样品 您可以创建自定义功能Cortana使用Cortana技能装备或遗留的声音命令(VCD)平台. 在这里,你可以找到相关的样品: Cortana技能装备 目前Cortana技巧是建立 ...
- 黑苹果安装 this is an unknown cpu model 0x3a
一:安装说明 安装的是 mac os x 10.8.3 懒人版: ASUS b75ma 主板 i3 cpu 二:安装出现错误 百度谷歌,各种找原因,各路大神们都说是显卡的问题,因这电源管理只是一个警告 ...
- zoj3662Math Magic
Math Magic Time Limit: 3 Seconds Memory Limit: 32768 KB Yesterday, my teacher taught us about ...
- vscode - 移动端适配(cssrem)
建议使用Chrome浏览器. 1.第一步,安装扩展以及配置 2.第二步,使用(记得按一下↓)
- 初次使用IntelliJ IDEA
一.认识IDEA IDEA 全称IntelliJ IDEA,是java语言开发的集成环境,IntelliJ在业界被公认为最好的java开发工具之一,尤其在智能代码助手.代码自动提示.重构.J2EE支持 ...
- Ext.encode 与 Ext.decode .
Ext.encode( Mixed o ) : String: json对象转换json字符串 Ext.decode( String json ) : Object: json字符串转换json对象 ...
- Hibernate中load与get,update与merge方法的区别
1.load()与get()的区别: (1)load()读取 User user = (User)session.load(User.class, userId); (2)get()读取 User u ...