我的博客运行在80端口,直接通过域名访问,但是我有其他的demo项目也需要运行在80端口,这样我们不用在丑陋的域名后面加上端口号了,怎么做呢,这时候需要用nginx做一个反向代理,nginx真正的运行在80端口,负责接收外来请求根据请求的域名来转发给不同的服务,我的服务时运行在8080和8081端口,nginx配置文件如下
events { worker_connections 1024; } http { server { listen 80; server_name www.wmyh.top; location / { proxy_pass http://localhost:8080; } } server { listen 80; server_name www.yowayimono.cn; location / { proxy_pass http://localhost:8081; } } }
很简单,我们把nginx运行在容器中,docker run --name nginx -p 80:80 -v /root/nginx/nginx.conf:/etc/nginx/nginx.conf -d nginx
,挂载配置文件。运行就可以了。你还可以配置更多的服务。
I think I'm one of the best-suited people to answer this question.
I have zero degrees in computer science. As an undergrad, I majored in history and English. I was a software developer and am now a computer science professor.
Assuming that you want a software development job, a computer science degree is incredibly important.
First, while I will admit to a talent for this stuff, I really didn't know what the hell I was doing when I got my first dev job. I just kept at it, made major mistakes, but seemed to get things working.
Second, I struggled to get jobs. I got them, but it took longer because I didn't have the degree. I decided to pursue an MS in software engineering.
Now dear reader, you may think, "software engineering, computer science, what's the difference?" Your opinion is sadly not universally shared. I learned what I needed to learn, but an MS in CS is seen as more valuable.
Third, when I went for my PhD, I chose a program in "information sciences and technology". Since I have no actual CS degrees, I faced a lot of bias, people who wouldn't hire me for faculty positions because of the label on my degree. This is less of an issue at the top of the field, but I'm not at the top of the field.
If you want to follow a route like mine and know that ahead of time, choose CS.
It is eminently possible to do what I did, even today. However, there was some luck involved (and would be today), and a hell of a lot of scrambling. My professional life would probably have been a lot easier if I knew what I wanted to do at the start (and had the maturity to do the work).
中文翻译
我认为我是最适合回答这个问题的人。
我在计算机科学领域没有学位。在本科时,我主修历史和英语。我曾是一名软件开发人员,现在是一名计算机科学教授。
假设你想要一份软件开发的工作,那么计算机科学学位非常重要。
首先,虽然我承认自己在这方面有才华,但当我得到我的第一份开发工作时,我真的不知道自己在做什么。我只是坚持不懈,犯了重大错误,但似乎总是能让事情正常运行。
其次,我曾经很难找到工作。虽然最终找到了,但因为没有学位,所以花了更长的时间。我决定攻读软件工程硕士学位。
现在,亲爱的读者,你可能会想,“软件工程,计算机科学,有什么区别?”不幸的是,你的看法并不普遍共享。我学到了我需要学的东西,但计算机科学硕士学位被认为更有价值。
第三,当我攻读博士学位时,我选择了一个“信息科学与技术”项目。因为我没有实际的计算机科学学位,所以我面临很多偏见,有些人因为我的学位标签而不愿雇佣我担任教职。在该领域的顶级职位上,这个问题不太重要,但我并不在该领域的顶级位置。
如果你想要像我这样的路线,并且在事先知道这一点的情况下,选择计算机科学。
即使在今天,也完全有可能做到这一点。但是,其中涉及到一些运气(今天也是如此),以及大量的奋斗。如果我在一开始知道自己想要做什么(并且有成熟度去做这项工作),我的职业生涯可能会更容易一些。
It means working from 9 am to 9 pm, 6 days a week.
It started to gain popularity when some Chinese company, predominately tech companies (and game companies) would openly require their workers to work for 12 hours a day, 6 days a week, without overtime pay.
It is listed on their hiring ads.
It is, of course, against Chinese labor law. But speaking from the gaming industry (since I’m more familiar with it), nobody enforces the law. And the companies would say the workers volunteered to stay late to finish the work.
What came after 996? ICU.