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 下配置的更多相关文章

  1. 在Mac下配置php开发环境:Apache+php+MySql

    /private/etc/apache2/httpd.conf 一.启动Apache sudo apachectl start sudo apachectl -v   可以查看到Apache的版本信息 ...

  2. 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版本 ...

  3. 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版本: ...

  4. 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 ...

  5. 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 ...

  6. 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 ...

  7. 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 ...

  8. 【高可用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 [ ...

  9. 【高可用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 参考 ...

随机推荐

  1. js 操作select和option常用代码整理

    1.获取选中select的value和text,html代码如下: <select id="mySelect"> <option value="1&qu ...

  2. VS2010 OpenCL运行环境配置

    1.安装AMD GPU显卡驱动(安装后重启) 13-12_win7_win8_64_dd_ccc_whql.exe 2.安装AMD OpenCL SDK(安装后重启) AMD-APP-SDK-v2.9 ...

  3. SQL IN

    here are some additional clause in the SQL language that can be used to simplify queries by decrease ...

  4. 当Intellij IDEA 遇到 Mac

    当Intellij IDEA 遇到 Mac alt+insert变为control+N

  5. 转:修改Android签名证书keystore的密码、别名alias以及别名密码

    转自:http://blog.k-res.net/archives/1671.html 二月 5, 2014  |  Posted by K-Res   之前在测试Eclipse ADT的Custom ...

  6. (转)Session URL重写

    Session URL重写 发表于 2012 年 3 月 5 日 Session URL重写,保证在客户端禁用或不支持COOKIE时,仍然可以使用Session session机制.session机制 ...

  7. 用rpm安装软件的常用步骤

    假设软件叫software.rpm 1.安装前,查看是否安装过用 rpm -q software 2.安装时,用 rpm -ivh software.rpm 3.安装后想删除,用 rpm -e sof ...

  8. 用thinkphp连接mysql数据库

    一.设置mysql数据库的参数 thinkphp\Application\Home\Conf\config.php <?php return array( //'配置项'=>'配置值' ' ...

  9. STL - Predicate - Binary Predicate(双参判断式)

    Binary Predicate(双参判断式)的用途是:比较两个参数的特定属性 我们先建一个领域模型类: Person.h #ifndef _Domain_Models_Person_H_ #defi ...

  10. PHP - AJAX 与 MySQL

    PHP - AJAX 与 MySQL AJAX 可用来与数据库进行交互式通信. AJAX 数据库实例 下面的实例将演示网页如何通过 AJAX 从数据库读取信息: 本教程使用到的 Websites 表 ...