亚洲高清无码在线观看,久久精品国产亚洲AV麻豆王友容 ,亚洲日本乱码一区二区在线二产线http://www.tkk7.com/doctoryang/業精于勤荒于嬉!zh-cnSun, 11 May 2025 13:11:06 GMTSun, 11 May 2025 13:11:06 GMT60 RedHat6網絡配置http://www.tkk7.com/doctoryang/archive/2016/09/07/431768.htmlDoctoryangDoctoryangWed, 07 Sep 2016 04:03:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/07/431768.htmlhttp://www.tkk7.com/doctoryang/comments/431768.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/07/431768.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431768.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431768.html1)配置IP

編輯/etc/sysconfig/network-scripts/ifcfg-eth0(不同的網卡為ifcfg-eth?)

a)靜態IP

  1. DEVICE=eth0

  2. HWADDR=00:0C:29:F3:13:87

  3. TYPE=Ethernet

  4. UUID=24b0bad9-c606-4498-a03a-65afa7d5ce63

  5. ONBOOT=yes

  6. NM_CONTROLLED=yes

  7. BOOTPROTO=static

  8. IPADDR=192.168.1.150

  9. NETMASK=255.255.255.0

  10. NETWORK=192.168.1.150

  11. GATEWAY=192.168.1.1

  12. DNS=xxx.xxx.xxx.xxx


b)動態IP

  1. DEVICE=eth0

  2. HWADDR=00:0C:29:F3:13:87

  3. TYPE=Ethernet

  4. UUID=24b0bad9-c606-4498-a03a-65afa7d5ce63

  5. ONBOOT=yes

  6. NM_CONTROLLED=yes

  7. BOOTPROTO=dbcp



2)重啟IP服務

service network restart



Doctoryang 2016-09-07 12:03 發表評論
]]>
Microsoft軟件下載http://www.tkk7.com/doctoryang/archive/2016/09/06/431763.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:33:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431763.htmlhttp://www.tkk7.com/doctoryang/comments/431763.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431763.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431763.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431763.htmlhttp://msdn.itellyou.cn/




Doctoryang 2016-09-06 17:33 發表評論
]]>
Microsoft Outlook郵件存儲路徑http://www.tkk7.com/doctoryang/archive/2016/09/06/431762.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:23:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431762.htmlhttp://www.tkk7.com/doctoryang/comments/431762.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431762.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431762.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431762.html<YourUserName>Library > Group Containers /UBF8T346G9.Office

Doctoryang 2016-09-06 17:23 發表評論
]]>
啟動SSH服務http://www.tkk7.com/doctoryang/archive/2016/09/06/431761.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:15:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431761.htmlhttp://www.tkk7.com/doctoryang/comments/431761.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431761.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431761.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431761.html啟動SSH服務

sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist


查看服務狀態

sudo launchctl list | grep ssh



Doctoryang 2016-09-06 17:15 發表評論
]]>
Homebrew Installhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431760.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:14:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431760.htmlhttp://www.tkk7.com/doctoryang/comments/431760.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431760.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431760.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431760.htmlHomebrew官網:http://brew.sh/


Install Code:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

安裝完成后查看安裝版本信息,如:


出現上面信息表上安裝成功了。


#nginx安裝

sudo brew install nginx


#nginx卸載

sudo brew uninstall nginx


#查詢nginx

sudo brew search nginx


nginx相關命令

#查看版本及配置地址

nginx -V


#查看版本

nginx -v


#指定配置文件

nginx -c filename


#幫助

nginx -h


#重新加載配置 | 重啟 | 停止 | 退出 nginx

nginx -s reload | reopen | stop | quit


#啟動nginx

sudo nginx



Doctoryang 2016-09-06 17:14 發表評論
]]>
SVN環境搭建http://www.tkk7.com/doctoryang/archive/2016/09/06/431759.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:08:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431759.htmlhttp://www.tkk7.com/doctoryang/comments/431759.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431759.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431759.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431759.htmlMacOS自帶SVN客戶端和服務端,只需要簡單配置即可使用。


#創建代碼倉庫

svnadmin create /Users/yangbo/SVN/mycode


#配置訪問權限

修改mycode/conf/svnserve.conf文件,將下列配置前#和空格去掉

password-db = passwd

authz-db = authz


#配置用戶密碼

修改mycode/conf/passwd文件,在[users]下添加一行,如下:

yangbo=xxx


#配置用戶組及權限

修改mycode/conf/authz文件

[groups]下面添加組名和用戶名,多個用戶之間用逗號隔開,如:

group1=zs,ls


[/]表示SVN服務器中的所有資源

配置資源能被哪些組或者用戶訪問(組前添加@,用戶不用)如:

[/project/p1]

@group1 = rw

yangbo = rw


#啟動SVN服務

svnserve -d -r /Users/yangbo/SVN/mycode


SVN客戶端使用

#從本地導入代碼到服務器

svn import /Users/yangbo/project/p1 svn://localhost/mycode/project --username=zs --password=xx -m "初始化"


#從服務器端下載代碼到本地

svn checkout svn://localhost/mycode/project --username=zs --password=xx .


#提交代碼

先進入到代碼的目錄,然后使用svn commit -m "修改xxx"命令即可。


#更新代碼

同提交代碼一樣,進入到代碼目錄,使用svn update命令即可。

Doctoryang 2016-09-06 17:08 發表評論
]]>
Logback Confighttp://www.tkk7.com/doctoryang/archive/2016/09/06/431758.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:05:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431758.htmlhttp://www.tkk7.com/doctoryang/comments/431758.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431758.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431758.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431758.htmlLogback配置每天一個日志文件,大小固定。如果超過配置的大小,則每天文件分為多個。第二天生成一個新的日志文件。


<appender name="File" class="ch.qos.logback.core.rolling.RollingFileAppender">

    <file>${logPath}/logFileName.log</file>

    <rollingPolicyclass="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">   

        <fileNamePattern>${logPath}/logFileName.%d{yyyy-MM-dd}-%i.log</fileNamePattern>

        <maxHistory>12</maxHistory>

        <timeBasedFileNamingAndTriggeringPolicy  

                                                        class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">  

            <maxFileSize>100MB</maxFileSize>

        </timeBasedFileNamingAndTriggeringPolicy>

    </rollingPolicy>

    <encoder charset="utf-8">

        <pattern>[projectName]%d{HH:mm:ss.SSS}[%thread][%-5level][%logger{150}]-%msg%n</pattern>

    </encoder>

</appender>


配置說明:


<file>:日志文件的名稱,包括全路徑。


<fileNamePattern>:日志文件每天文件名稱格式。


<maxHistory>:保留多長時間日志,單位為:月。


<maxFileSize>:每個日志文件的大小。


<pattern>:日志記錄格式。




Doctoryang 2016-09-06 17:05 發表評論
]]>
JDK5線程并發包使用整理http://www.tkk7.com/doctoryang/archive/2016/09/06/431757.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:02:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431757.htmlhttp://www.tkk7.com/doctoryang/comments/431757.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431757.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431757.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431757.htmlJDK5線程并發包

1)AtomicInteger

使用原子方式更新int值


2)創建線程池

a)創建固定大小的線程池

ExecutorService threadPool = Executors.newFixedThreadPool(10);//創建一個有10個線程的線程池


b)創建緩存線程池

Executors.newCachedThreadPool();

創建一個可根據需要創建新線程的線程池,可自動調整線程的多少


c)創建單線程的線程池

Executors.newSingleThreadExecutor();

該線程池里面只有一個線程,如果死掉了也可以自動再創建一個,保證永遠有一個


d)創建一個線程池,它可安排在給定延遲后運行命令或者定期地執行

ScheduledExecutorService threadPool = Executors.newScheduledThreadPool(3);

threadPool.schedule(Runnable command,long delay,TimeUnit unit)

創建并執行在給定延遲后啟用的一次性操作


threadPool.scheduleAtFixedRate(Runnable command,long initialDelay,long period,TimeUnit unit)

創建并執行一個在給定初始延遲后首次啟用的定期操作,后續操作具有給定的周期.

也就是將在initialDelay后開始執行,然后在initialDelay+period后執行,接著在initialDelay + 2 * period后執行,依此類推


不管哪種創建方式其實都是由ThreadPoolExecutor類來實現的


3)Callable&Future

a)Future取得的結果類型和Callable返回的結果類型必須一致,這是通過泛型來實現的。

b)Callable要采用ExecutorSevice的submit方法提交,返回的future對象可以取消任務。

c)CompletionService用于提交一組Callable任務,其take方法返回已完成的一個Callable任務對應的Future對象。


4)Lock&Condition

Lock ---> synchronized

Lock lock = new ReentrantLock();

ReadWriteLock rwlock = new ReentrantReadWriteLock();


private Condition condition = lock.newCondition();

condition.await();  ---> wait()

condition.signal(); ---> notify()


5)Semaphore

final Semaphore semaphore = new Semaphore(3);


6)CyclicBarrier

7)CountDownLatch

8)Exchanger

9)ArrayBlockingQueue(阻塞隊列)

10)ConcurrentHashMap

CopyOnWriteArrayList

CopyOnWriteArraySet



Doctoryang 2016-09-06 17:02 發表評論
]]>
Apache Kafka Installhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431756.htmlDoctoryangDoctoryangTue, 06 Sep 2016 09:00:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/431756.htmlhttp://www.tkk7.com/doctoryang/comments/431756.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/431756.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431756.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431756.html

1.修改每臺服務器config/server.properties

broker.id:唯一,填數字

host.name:填寫服務器IP

zookeeper.connect=192.168.1.100:2181,192.168.1.101:2181,192.168.1.103:2181


2.啟動

先啟動zookeeper服務

bin/zkServer.sh start

再在每臺機器上執行Kafka服務

bin/kafka-server-start.sh config/server.properties


3.創建topic

bin/kafka-topics.sh —create —zookeeper localhost:2181 —replication-factor 3 —partitions 1 —topic demo_1


4.查看topic

bin/kafka-topics.sh —list —zookeeper localhost:2181


5.查看詳細信息

bin/kafka-topics.sh —describe —zookeeper 192.168.1.100:2181


6.發送消息

bin/kafka-console-producer.sh —broker-list 192.168.1.100:9092 —topic demo_1


7.接收消息

bin/kafka-console-consumer.sh —zookeeper 192.168.1.100:2181 —topic demo_1 —from-beginning




Doctoryang 2016-09-06 17:00 發表評論
]]>
JSR303http://www.tkk7.com/doctoryang/archive/2016/09/06/aaa.htmlDoctoryangDoctoryangTue, 06 Sep 2016 08:40:00 GMThttp://www.tkk7.com/doctoryang/archive/2016/09/06/aaa.htmlhttp://www.tkk7.com/doctoryang/comments/431754.htmlhttp://www.tkk7.com/doctoryang/archive/2016/09/06/aaa.html#Feedback0http://www.tkk7.com/doctoryang/comments/commentRss/431754.htmlhttp://www.tkk7.com/doctoryang/services/trackbacks/431754.html

Hibernate Validator

http://docs.jboss.org/hibernate/validator/4.2/reference/zh-CN/html_single/



Doctoryang 2016-09-06 16:40 發表評論
]]>
主站蜘蛛池模板: 国产青草亚洲香蕉精品久久| 亚洲成AV人片久久| 精品一区二区三区免费毛片| 69成人免费视频无码专区| 91亚洲精品第一综合不卡播放| 无码人妻一区二区三区免费看| 亚洲爆乳无码专区| 免费无遮挡无码永久视频| 久久精品a亚洲国产v高清不卡| 美女内射无套日韩免费播放| 亚洲激情视频网站| 性短视频在线观看免费不卡流畅| 亚洲国产成人久久三区| 欧美日韩国产免费一区二区三区| 亚洲欧洲精品成人久久曰| 无码国模国产在线观看免费| 另类小说亚洲色图| 中文字幕在亚洲第一在线| jizz免费一区二区三区| 亚洲国产精品无码久久久蜜芽 | 国产精品亚洲一区二区三区在线观看| 在线免费观看毛片网站| 黄色毛片免费在线观看| 国产亚洲色视频在线| 久99久精品免费视频热77| 亚洲乱码一区av春药高潮| 日韩免费视频在线观看| 一个人免费观看日本www视频| 亚洲国产成人一区二区三区| 中文字幕在线观看免费视频| 亚洲色中文字幕在线播放| 亚洲国产精品无码久久久久久曰| 免费观看在线禁片| 亚洲人成网站色在线观看| 亚洲av再在线观看| 毛片无码免费无码播放| 久久精品亚洲日本波多野结衣| 国内精品99亚洲免费高清| 亚洲精品国产免费| 免费毛片毛片网址| 亚洲性天天干天天摸|