自己mac电脑上运行go项目时需要sudo权限才能操作。如果没有sudo则报错:
1command not found: go
原因时账号没有root权限
修改/etc/sudoers文件配置,顺利解决该问题:
1sudo visudo
找到1root ALL = (ALL) ALL
复制一行,将root改为自己的账号名,保存即可
文章转载自这里
一,需求缘起互联网公司,这样的场景是否似曾相识:
场景一:pm要做一个很大的运营活动,技术老大杀过来,问了两个问题:
(1)机器能抗住么?
(2)如果扛不住,需要加多少台机器?
场景二:系统设计阶段,技术老大杀过来,又问了两个问题:
(1)数据库需要分库么?
(2)如果需要分库,需要分几个库?
技术上来说,这些都是系统容量预估的问题,容...
Pragramming is like writing a book… except if you miss out a single comma, the whole thind make no drmn sense…
This is my first blog, I’m not sure whether is better or not. but this is for my best now…
I’m very like Python and Linux, but I also wish get a chance to do it in workingenvert...