Busca entre varios profesores de Inglés...
China flagOvalPo
Yesterday (part1) Yesterday my friend sent me several files and asked me to help him analyze these files. This was the second time he turned to me for help. Even I had already coded a program to do the analyze things, I still need to use Vim to manipulate these documents and use erlang to process them. We the programmers are always loath to do repetitive work, so I began to think about it. He once asked me to write a desk software for him, but I am not sure to use C/C++/C# to write a desk software since I am not familiar with them. Although, I can also use erlang to write a desk software. But in order to run an erlang written software, he must install the erlang environment. So I determined to deploy an internet service instead of writing a desk software. I can use erlang to provide the server service, an use web to provide the client service. I used erlang to recode the analyze program instantly, and deployed it on my virtual private server. I use html to design the client web page, and through the web page, we can upload files which will be transferred to my private server for the erlang analyze program to analyze. After that, we could send commands to the server to handle the analyze program. These commands were written in several PHP scripts. I had spent about an hour to finish all these stuffs, and the whole system works under my local virtual CentOS system which made me feel very glad. After that, I spent a few minutes to deploy this analyze system on the internet for my friend to access it and use it. But it didn't work under my virtual private server which has been installed an Ubuntu on it. And it had screwed up my afternoon and night. When it came to 9 p.m., I got off work with unwillingness. I walked on the road, felt very frustrated. Thanks to depressing emotion, I was deep in meditation on my way home. After I got back home, I logged into my virtual private server, opened the source code files, tried to figure out the problem. Then I realized that the error status code is 1, but I didn't know its meaning. I searched the documentation and googled a lot without any clue. At that time, I recalled that I could ask my classmate Ruitao who is an expert in PHP field. It's little exciting that I thought he may help me to solve this problem. So I sent tweets to him, and he advised me to use strace to debug this problem after 20 minute on twitter.

Correcciones · 1

0
I am not familiar with strace, I tried to google it to figure out how it works, but only with no clue. During that time, I had a distinct feeling that It maybe something about the permission. After several tries, I found that it can't execute an erlang command. From then on I became more convinced that it's something relate to user access permissions. After another long effort on Google with keywords like PHP, system, failed, permission etc. Where there is a will, there is a way. I found two blogs that relate to this problem. God helped me that I solved this problem after I followed some instructions in one of the blogs. Even I had stayed up too late until 0:30 a.m. and this problem had cost me too much time, I became very satisfied after then.

¿Quieres avanzar más rápido?

¡Únete a esta comunidad de aprendizaje y prueba ejercicios gratuitos!

No pierdas la oportunidad de aprender un idioma desde la comodidad de tu casa. ¡Explora nuestra selección de profesores de idiomas con experiencia e inscríbete ya en tu primera clase!

Empieza a aprender hoy