centos下添加环境变量和启动apache
2016-03-04 00:46
573 查看
#修改环境变量文件
vi /etc/profile
#文件内容末尾添上
#修改后让环境变量生效
source /etc/profile
这时再查看系统环境变量,就能看见刚才加的东西已经生效了
#启动apache
apachectl start
vi /etc/profile
#文件内容末尾添上
PATH=/usr/local/php/bin:$PATH export PATH
#修改后让环境变量生效
source /etc/profile
这时再查看系统环境变量,就能看见刚才加的东西已经生效了
[root@Jason ~]# echo $PATH
#启动apache
apachectl start
相关文章推荐
- JSONArray().fromObject(); 出现org.apache.catalina.core.StandardWrapperValve invoke错误的解决办法
- 安装配置PHP Apachec 错误处理
- Apache shiro 笔记整理之整合spring
- LAMP第二部分apache配置
- 全文检索-Apache Lucene初探
- apache编译出错 error: mod_deflate has been requested
- Unable to load config class org.apache.struts2.interceptor.debugging.DebuggingInterceptor at interce
- class "org.apache.commons.collections.FastHashMap"'s signer information does not match signer inform
- Apache 的ab测试
- AXIS客户端调用出错org.apache.axis.NoEndPointException
- Apache shiro 笔记整理之加密
- Apache Kafka:下一代分布式消息系统
- (1) PHP 随笔---跟老韩学(24-34)---Apache、PHP简介、环境的搭建
- 在本地使用Apache配置WEB服务器
- Eclipse使用Maven创建Web时错误:Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webap
- org.apache.subversion.javahl.ClientException: Previous operation has not finished
- Apache Thrift - 可伸缩的跨语言服务开发框架
- 闰年2月29号 通过apache的ftp工具从ftp上下载文件失败
- Windows 64位系统安装Apache2.4 mysql5.5
- Apache之AllowOverride参数详解