| | |
| | | |
| | | //public static string connection = @"server=.;database=WebCrawler;uid=sa;pwd=123456;"; |
| | | //public static string connection1 = @"server=.;database=zhengcaioa;uid=sa;pwd=123456;"; |
| | | //public static string api_domain = "http://192.168.0.4:9200"; |
| | | //public static string api_domain = "http://192.168.0.9:9200"; |
| | | |
| | | public static string connection = @"server=172.26.97.184;database=WebCrawler;uid=sa;pwd=Za20222812;"; |
| | | public static string connection1 = @"server=172.26.97.184;database=zhengcaioa;uid=sa;pwd=Za20222812;"; |
| | | public static string api_domain = "http://localhost:9200"; |
| | | public static string api_domain = "http://172.26.97.184:9200"; |
| | | static void Main(string[] args) |
| | | { |
| | | |
| | |
| | | thread.Start(); |
| | | |
| | | |
| | | Thread thread1 = new Thread(new ThreadStart(obj.Method2)); |
| | | thread1.Start(); |
| | | //Thread thread1 = new Thread(new ThreadStart(obj.Method2)); |
| | | //thread1.Start(); |
| | | |
| | | |
| | | Thread thread2 = new Thread(new ThreadStart(obj.Method3)); |
| | | thread2.Start(); |
| | | //Thread thread2 = new Thread(new ThreadStart(obj.Method3)); |
| | | //thread2.Start(); |
| | | |
| | | Console.WriteLine("Hello World!"); |
| | | } |
| | |
| | | |
| | | //获取中国政采网的四川政采数据 |
| | | CcgpSichuanoperation.operations(cccontext); |
| | | Thread.CurrentThread.Join(1000 * 60 * 30);//阻止设定时间 |
| | | Thread.CurrentThread.Join(1000 * 60 * 10);//阻止设定时间 |
| | | } |
| | | } |
| | | |