小编Gow*_*u R的帖子

我该如何恢复/ etc/nginx?

我错误地删除了我的ubuntu 11.10 PC中的/ etc/nginx目录.如何在/ etc/nginx中恢复ngnix目录?

我做了这些命令:

  1. sudo su
  2. rm -rf /etc/nginx

我想再次获得/ etc/nginx目录.怎么样?

我试过这个重新安装nginx:

  1. sudo apt-get update
  2. sudo apt-get upgrade
  3. sudo apt-get install nginx

然后它给出了以下

Reading package lists... Done

Building dependency tree   

Reading state information... Done
E: Unable to locate package nginx
Run Code Online (Sandbox Code Playgroud)

如何在ubuntu 11.10上获得完整的nginx软件?

ubuntu ubuntu-11.10

91
推荐指数
1
解决办法
7万
查看次数

将Mysql查询转换为Rails ActiveRecord查询而不使用find_by_sql

我有表格如下的问题

+----+---------------------------------------------------------+----------+
| id | title                                                   | category |
+----+---------------------------------------------------------+----------+
| 89 | Tinker or work with your hands?                         |        2 |
| 54 | Sketch, draw, paint?                                    |        3 |
| 53 | Express yourself clearly?                               |        4 |
| 77 | Keep accurate records?                                  |        6 |
| 32 | Efficient?                                              |        6 |
| 52 | Make original crafts, dinners, school or work projects? |        3 |
| 70 | Be elected to office or make your …

mysql activerecord ruby-on-rails

7
推荐指数
1
解决办法
539
查看次数