taozeyu / yyweb Goto Github PK
View Code? Open in Web Editor NEW知言译义网
Home Page: http://zyyywang.com/
知言译义网
Home Page: http://zyyywang.com/
知言译义网 http://zyyywang.com 有问题可以联系我 [email protected] (MOsky) -------------部署------------------ 环境:Rails 3.0 + Passenger + Nginx + mysql 14.14 ----------------部署------------------ $ gem install passenger $ passenger-install-nginx-module 然后选择 1;然后选择 ruby 如果中途提示系统缺乏什么,按照提示安装就是,然后重新安装Nginx。(回到第一步) 选择 1 (Yes: download, compile and install Nginx for me...) Please specify a prefix directory [/opt/nginx]: 设置安装路径为:/usr/local/nginx 等待安装完毕... $ln -s /usr/local/nginx/sbin/nginx /usr/sbin/ $ vim /usr/local/nginx/conf/nginx.conf server { listen 80; server_name zyyywang.com; root /home/taozeyu/projects/yyweb/public; location / { proxy_pass http:127.0.0.1:3000/; } }----------------部署------------------ $ gem install passenger $ passenger-install-nginx-module 然后选择 1;然后选择 ruby 如果中途提示系统缺乏什么,按照提示安装就是,然后重新安装Nginx。(回到第一步) 选择 1 (Yes: download, compile and install Nginx for me...) Please specify a prefix directory [/opt/nginx]: 设置安装路径为:/usr/local/nginx 等待安装完毕... $ vim /usr/local/nginx/conf/nginx.conf server { listen 80; server_name zyyywang.com; root /home/taozeyu/projects/yyweb/public; if ($host != 'zyyywang.com' ) { rewrite ^/(.*)$ http://zyyywang.com/$1 permanent; } location / { proxy_pass http:127.0.0.1:8080/; } } 安全起见,不许外网访问3000端口。 $ screen 在screen 中启动服务程序 $ cd /home/rails/yyweb $ passenger start -e production -p 8080 $ nginx --------------------操作------------------- $ nginx 启动 Nginx $ nginx -s stop 关闭 Nginx $ nginx -s reload (修改/usr/local/nginx/conf/nginx 后需要重新载入配置)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.