# 01.02-Booting

由於執行 snmpd 需要 libnetsnmpagent.so.20，可是 libnetsnmpagent.so.20 並不在預設的路徑中，所以必須要 export libnetsnmpagent.so.20 所在的資料夾 /usr/local/lib，必須使用 root 權限才可以完成。

\[net-snmp-5.5]#sudo su -

\[root]# export LD\_LIBRARY\_PATH=/usr/local/lib

\[root]#snmpd

\[root]#exit // 切回一般使用者權限

\[net-snmp-5.5]#sudo chmod a+s /bin/nano

\[net-snmp-5.5]#export LD\_LIBRARY\_PATH=/usr/local/lib

\[net-snmp-5.5]#sudo snmpd

\[net-snmp-5.5]#sudo netstat -tuple

//查看snmpd是否已被開啟，如已正確開啟會和圖 3相同

<figure><img src="/files/3oF0Sw4YWsr90Bm891Vc" alt=""><figcaption><p>圖 3、使用 netstat 指令觀察電腦正在listen的通訊埠</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://netsnmp-install.netdpi.net/home/01-02-booting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
