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 参考 ...
随机推荐
- Python学习(四)数据结构(概要)
Python 数据结构 本章介绍 Python 主要的 built-type(内建数据类型),包括如下: Numeric types int float Text Sequence ...
- iOS开源项目:SVPullToRefresh
SVPullToRefresh也是一个下拉刷新的项目:https://github.com/samvermette/SVPullToRefresh SVPullToRefresh 允许你通过一行代码把 ...
- iOS:文件归档和解归档的详解和使用
文件归档和解归档: 用途: 所谓文件归档,就是把需要存储的对象数据存储到沙盒的Documents目录下的文件中,即存储到了磁盘上,实现数据的持久性存储和备份.解归档,就是从磁盘上读取该文件下的数据,用 ...
- 大端和小端(Big endian and Little endian)
一.大端和小端的问题 对于整型.长整型等数据类型,Big endian 认为第一个字节是最高位字节(按照从低地址到高地址的顺序存放数据的高位字节到低位字节):而 Little endian 则相反,它 ...
- 搜索引擎爬虫蜘蛛的useragent
百度爬虫 * Baiduspider+(+http://www.baidu.com/search/spider.htm”) google爬虫 * Mozilla/5.0 (compatib ...
- Android 中的长度单位具体解释
一.介绍一下 dp 和 sp. dp 也就是 dip.这个和 sp 基本类似.假设设置表示长度.高度等属性时能够使用 dp 或 sp.但假设设置字体,须要使用 sp. dp 是与密度无关,sp除了与密 ...
- ionic的加载功能
下面是代码(黄色背景的是加载功能的代码): <html ng-app="ionicApp"> <head> <meta charset="u ...
- java实现双向循环链表
java实现循环链表:http://www.cnblogs.com/lixiaolun/p/4643911.html 在单链表中,查询下一个元素的时间是O(1).查询上一个元素的时间却是O(n). 为 ...
- setup factory 打包VB 工程
setup factory 使用起来很简单你可以如下:1.你把你刚编译出来的exe和相关的资源文件复制到某一空目录下.把exe文件添加到setup factory里之后,在列表里右键,属性里面可以设置 ...
- oracle 三表关联查询
oracle 三表关联查询 CreationTime--2018年7月4日17点52分 Author:Marydon 左连接实现三表关联 表A--------------------------- ...