簡單訪問
⑴ 能否用簡單方式訪問區域網內的動態地址網站
用計算機名來訪問
⑵ 如何用一個簡單的方法讓外網的用戶訪問內網的伺服器
使用花生殼動態域名解析,具體方法如下:
第一步 搭建網站
先在電腦自帶的iis搭建一個簡單的界面,然後使用電腦的IP地址測試訪問。
第二步 下載客戶端
從花生殼官網下載花生殼(內網穿透)版本客戶端。
下載到本地後安裝
第三步 登錄客戶端
第四步 添加映射
點擊花生殼主界面上的「內網穿透」,則跳轉至花生殼管理內網穿透頁面,點擊界面右上角「添加映射」按鈕過程如圖:
「應用名稱」是自定義,選擇域名和映射類型,填寫「內網主機」,「內網埠」以及選擇「外網埠」形式,點擊確定即可。
添加成功,產生一個外網訪問地址。
第五步 外網測試訪問
在外網打開瀏覽器輸入花生殼的外網訪問地址測試訪問,如果訪問到的界面跟區域網訪問的界面一致代表映射正常。
⑶ 如何簡單的桌面訪問硬碟文件呢
這是NTFS專有的保護設置,可以如下解決: 1.打開「我的電腦」選擇「工具/文件夾選項」之後打開標簽「查看」將「使用簡單文件共享」的對勾去掉 2.打開拒絕訪問文件的屬性,切換到「安全」標簽上,之後選擇「添加」將你現用的用啟添加進去即可,同時下方許可權選擇「完全控制」
import java.sql.*;
//封裝資料庫對象,使用javaBean;
public class DB {
public static Connection getConnection() {
String driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://localhost:3306/db?user=root&password=root";
Connection conn = null;
try {
Class.forName(driver);
conn = DriverManager.getConnection(url);
} catch (ClassNotFoundException e) {
e.printStackTrace();
} catch (SQLException e) {
e.printStackTrace();
}
return conn;
}
public static Statement createStatement(Connection conn) {
Statement stmt = null;
try {
stmt = conn.createStatement();
} catch (SQLException e) {
e.printStackTrace();
}
return stmt;
}
public static ResultSet executeQuery(Statement stmt, String sql) {
ResultSet rs = null;
try {
rs = stmt.executeQuery(sql);
} catch (SQLException e) {
e.printStackTrace();
}
return rs;
}
public static int executeUpdate(Connection conn, String sql) {
int row = 0;
Statement stmt = null;
try {
stmt = conn.createStatement();
row = stmt.executeUpdate(sql);
} catch (SQLException e) {
e.printStackTrace();
} finally {
// close();
close(stmt);
}
return row;
}
public static PreparedStatement prepareStatement(Connection conn, String sql) {
PreparedStatement pstmt = null;
try {
pstmt = conn.prepareStatement(sql);
} catch (SQLException e) {
e.printStackTrace();
}
return pstmt;
}
public static PreparedStatement prepareStatement(Connection conn,
String sql, int autoGeneratedKeys) {
PreparedStatement pstmt = null;
try {
pstmt = conn.prepareStatement(sql, autoGeneratedKeys);
} catch (SQLException e) {
e.printStackTrace();
}
return pstmt;
}
public static void close(PreparedStatement pstmt) {//可以使用close(Statement stmt)方法,父類引用指向子類對象;
if (null != pstmt) {
try {
pstmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
pstmt = null;
}
public static void close(Statement stmt) {
if (null != stmt) {
try {
stmt.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
stmt = null;
}
public static void close(ResultSet rs) {
if (null != rs) {
try {
rs.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
rs = null;
}
public static void close(Connection conn) {
if (null != conn) {
try {
conn.close();
} catch (SQLException e) {
e.printStackTrace();
}
}
conn = null;
}
}
//////////////////
<%
String title = request.getParameter("title");
String context = request.getParameter("context");
//System.out.println(int_id+"-"+title+"-"+context);
//Connection conn = DB.getConnection();
boolean defaultAutoCommit = conn.getAutoCommit();
conn.setAutoCommit(false);
//String _sql = "update article set title = ?,cont = ?,pdate = now() where id = ?";
String _sql = "update article set title = ?,cont = ? where id = ?";
PreparedStatement pstmt = DB.prepareStatement(conn, _sql);
pstmt.setString(1, title);
pstmt.setString(2, context);
pstmt.setInt(3, int_id);
pstmt.executeUpdate();
conn.commit();
conn.setAutoCommit(defaultAutoCommit);
DB.close(pstmt);
DB.close(conn);
response.sendRedirect(url);
%>
⑸ 訪問造句簡單
訪問造句如下所示:
1、經常有外賓到我們學校參觀訪問。
2、我們懷著崇敬的心情訪問了老紅軍張爺爺。
3、樂成決不喜歡訪問懶漢,而是喚醒懶漢。
6、尊敬的*理閣下,歡迎您來中國訪問。
7、國家*席應邀訪問歐洲五國。
8、外國友人應邀來我校參觀訪問。
⑹ VB簡單訪問資料庫
可以按一下幾步來:
1.在VB中添加data1控制項
2.在屬性框中找到connect屬性進行連接
3.在datasouce屬性中選擇你要添加的資料庫
4.設計你要的界面,在找的相關的屬性設置
5.編寫程序
(比較簡單)
⑺ 一個簡單的訪問特定目錄的bat怎麼寫
你可以在注冊表的「HKEY_CURRENT_USER\Software\Microsoft\CommandProcessor」下面新建一個名為AutoRun的字串,並設置該字串值為「CD /D E:\server」來改變該默認路徑。下次用CMD進入DOS提示符窗口,默認路徑就是C:\了。
或者直接寫個bat
cd /D E:\server
node server.js
pause
⑻ java連接資料庫mysql代碼及簡單訪問資料庫
public static void main(String[] args) {
try {
Class.forName(「com.mysql.jdbc.Driver」);//載入mysql驅動
con=DriverManager.getConnection(「jdbc:mysql://127.0.0.1/student」, 「 root」, "root");//第一個鏈接的url需要吧student改成你的庫名,2個事賬號,3是密碼
PreparedStatement ps=null;//創建執行sql語句的對象
}
⑼ 求助簡單訪問網頁問題,
1、應該還是瀏覽器的問題,打開IE瀏覽器選項,在連接選項卡中點區域網設置,將裡面所有的勾都去掉,在高級選項卡中,將通過代理連接HTTP1.1前面的勾也去掉試試。 2、1不行,則更新IE瀏覽器。
⑽ 用bat做個簡單的區域網訪問
在bat 裡面輸入:
net use \\192.168.1.1\ipc$ "輸入你的密碼" /u:administrator
start \\192.168.1.1
如有問題,請網路hi