Servers
nomq
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Jenkins2.32.3+Git+Maven+Tomcat+Ubuntu Linux
–>Wed Mar 22 2017 –>Jenkins_2.32.3 –>Jenkins plugins: Maven Integration plugin, Publish Over SSH, Deploy to Container Plugin (These plugins you have to install manually!) –>Tomcat9 –>Ubuntu_原创 2017-03-22 11:47:35 · 532 阅读 · 0 评论 -
shell of mysql
(1)login mysql#!/bin/bashmysql -uxxx -pxxxx -A(2)mysqldump [tables, data, functions and procedures] #!/bin/bashecho "export tables and data"mysqldump -hxxx -Pxxx -uxxx -pxxx --default-character-set=u原创 2017-08-29 14:44:07 · 462 阅读 · 0 评论 -
shell of ssh
(1)login ssh#!/usr/bin/expectset timeout 30spawn ssh -l username -pxxx 123.123.123.123expect "password:"# xxx is your passwordsend "xxx\r"interact(2)scp files to server#!/usr/bin/expectset timeout原创 2017-08-29 14:50:29 · 409 阅读 · 0 评论 -
shell of zip like war
(1)zip options -f :update file or add file-m :add file to zip achive then delete the original file-u :same as -f(1)add file zip -m xxx.war filepath zip -f xxx.war filepath~$unzip -l test.warArchiv原创 2017-08-29 15:19:04 · 360 阅读 · 0 评论 -
shell expect scp file
#!/bin/bash#upload file or folder to server#source scp_profile.shFILE_NAME=""SERVER_HOST="123.123.123.123"SERVER_PORT=123LOGIN_USER="username"PASSWORD="password"UPLOAD_ROOT_FOLDER="/upload_path"w原创 2017-08-31 21:16:25 · 326 阅读 · 0 评论
分享