2012年12月18日

摘要: 命令行如下:curl -O http://themainframe.ca/wp-content/uploads/2011/06/htop.zipunzip htop.zipsudo mv htop /binrm htop.zip 阅读全文
posted @ 2012-12-18 16:06 timelyxyz 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: 步骤1)下载Tomcat,我下的是Tomcat 7.0.14(Binary Distributions tar.gz)。2)解压,文件夹改名为tomat3)移动该文件夹,至你习惯的目录,比如/usr/local/4)执行/usr/local/tomcat/bin下的startup.sh5)打开http://localhost:8080查看是否已经启动6)解决文件权限问题:sudo chmod 755 /usr/local/tomcat/bin/*.sh7)定义JAVA_HOME,在/etc/profile中新增:export JAVA_HOME=/Library/Java/Home在/tomc 阅读全文
posted @ 2012-12-18 14:05 timelyxyz 阅读(235) 评论(0) 推荐(0) 编辑
摘要: # 添加mysql的path$ sudo mate ~/.bash_profileexport PATH=/usr/local/mysql/bin:$PATH# 保存配置:wq$ source ~/.bash_profile# 修改mysql密码$ mysqladmin -u root password# 登录mysql$ mysql -u root -p# 启动/停止开机启动中的mysql服务$ sudo /Library/StartupItems/MySQL/MySQL start/stop 阅读全文
posted @ 2012-12-18 11:04 timelyxyz 阅读(1880) 评论(0) 推荐(0) 编辑

导航