Advertisement
Guest User

Untitled

a guest
Sep 2nd, 2015
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.42 KB | None | 0 0
  1. Гайд для UNIX/Linux админа:
  2.  
  3. === 1 ===
  4. С Linux учиться начинать можно, и это не плохо, но вот с какого - это вопрос.
  5. Linux масштабно используется в двух вариантах:
  6. а) всяческие веб-сервисы
  7. б) энтерпрайз, где он работает на замене UNIX'ов.
  8. В веб-сервисах может использоваться относительно любой Linux, но тебя интересует развитие, и потому, казалось бы, ты должен знать те Linux'ы, которые используются в крупных веб-конторах: Google, Facebook, etc. Но по факту в этих компаниях используются свои дистрибутивы, и они c готовностью доучивают новых сотрудников особенностям своих Linux'ов. Мелкие компании тебя интересовать не должны, если в компании меньше 100 серваков на одного админа - это эникейство, низкие зарплаты, никакого развития
  9. В энтерпрайзах работают только энтерпрайзные Linux'ы, коих на свете два: SLES от Novell/SUSE, и RHEL от Red Hat. Всё. Учить можно любой из них, а все остальные дебианы, убунту и прочие генту - забудь, знание их особенностей тебе хороших денег, скорее всего, не принесёт.
  10.  
  11. Итак. Если учишь Linux, то пусть это будет RHEL (CentOS) или SLES (что там у них.. OpenSUSE?).
  12.  
  13. === 2 ===
  14. Что и как учить.
  15. На своём опыте и на опыте младших коллег, которых я и мои опытные коллеги учили.
  16. У Red Hat круче экзаменационная программа, там лабораторки, по-этому мы в своё время выбрали их программу для внутреннего обучения. Для получения хорошей работы рекомендую иметь уровень, примерно соответствующий RHCE. Уровень RHCSA на ступень ниже - базовый, достаточно простой.
  17. Идёшь на сайт redhat.com, в раздел обучения и сертификации http://www.redhat.com/en/services/all-certifications-and-exams, открываешь интересующие тебя сертификации и копируешь себе все Requirements, потом идёшь в Recommended Trainings, и из каждого курса копируешь себе "Course content summary" и "Outline". Потом возвращаешься на страничку сертификации, идёшь в Required Exam, и из каждого экзамена копируешь себе Objectives. Например:
  18. ------------- code -------------
  19. RHCSA
  20.  
  21. Understand and use essential tools for handling files, directories, command-line environments, and documentation
  22. Operate running systems, including booting into different run levels, identifying processes, starting and stopping virtual machines, and controlling services
  23. Configure local storage using partitions and logical volumes
  24. Create and configure file systems and file system attributes, such as permissions, encryption, access control lists, and network file systems
  25. Deploy, configure, and maintain systems, including software installation, update, and core services
  26. Manage users and groups, including use of a centralized directory for authentication
  27. Manage security, including basic firewall and SELinux configuration
  28.  
  29. Курс RH124
  30.  
  31. Introduction to the command line
  32. Managing physical storage
  33. Learning how to install and configure software components and services
  34. Establishing network connections and firewall access
  35. Monitoring and managing processes
  36. Managing and securing files
  37. Administrating users and groups
  38. Accessing Linux file systems
  39. Installing and using virtualized systems
  40. Reviewing the system log files and journal
  41. Access the command line
  42. Log in to a Linux system and run simple commands using the shell.
  43. Manage files from the command line
  44. Copy, move, create, delete, and organize files from the bash shell prompt.
  45. Get help in Red Hat Enterprise Linux
  46. Resolve problems by using online help systems and Red Hat support utilities.
  47. Create, view, and edit text files
  48. Create, view, and edit text files from command output or in an editor.
  49. Manage local Linux users and groups
  50. Manage local Linux users and groups, and administer local password policies.
  51. Control access to files with Linux file system permissions
  52. Set Linux file system permissions on files and interpret the security effects of different permission settings.
  53. Monitor and manage Linux processes
  54. Obtain information about the system, and control processes running on it.
  55. Control services and daemons
  56. Control and monitor network services and system daemons using systemd
  57. Configure and secure OpenSSH service
  58. Access and provide access to the command line on remote systems securely using OpenSSH
  59. Analyze and store logs
  60. Locate and accurately interpret relevant system log files for troubleshooting purposes.
  61. Manage Red Hat Enterprise Linux networking
  62. Configure basic IPv4 networking on Red Hat Enterprise Linux systems.
  63. Archive and copy files between systems
  64. Archive files and copy them from one system to another.
  65. Install and update software packages
  66. Download, install, update, and manage software packages from Red Hat and yum package repositories.
  67. Access Linux file systems
  68. Access and inspect existing file systems on a Red Hat Enterprise Linux system.
  69. Use virtualized systems
  70. Create and use Red Hat Enterprise Linux virtual machines with KVM and libvirt.
  71. Comprehensive review
  72. Practice and demonstrate the knowledge and skills learned in this course.
  73.  
  74. Курс RH134
  75.  
  76. Installation using Kickstart
  77. Manage filesystems and logical volumes
  78. Manage scheduled jobs
  79. Access network filesystems
  80. Manage SELinux
  81. Control firewalling
  82. Troubleshooting
  83. Automate installation with Kickstart
  84. Automate the installation of Red Hat Enterprise Linux systems with Kickstart.
  85. Use regular expressions with grep
  86. Write regular expressions that, when partnered with grep, will allow you to quickly isolate or locate content within text files.
  87. Create and Edit text files with vim
  88. Introduce the vim text editor, with which you can open, edit, and save text files.
  89. Schedule future Linux tasks
  90. Schedule tasks to automatically execute in the future.
  91. Manage priority of Linux processes
  92. Influence the relative priorities at which Linux processes run.
  93. Control access to files with access control lists (ACL)
  94. Manage file security using POSIX access control lists.
  95. Manage SELinux security
  96. Manage the Security Enhanced Linux (SELinux) behavior of a system to keep it secure in case of a network service compromise.
  97. Connect to network-defined users and groups
  98. Configure systems to use central identity management services.
  99. Add disks, partitions, and file systems to a Linux system
  100. Manage simple partitions and file systems.
  101. Manage logical volume management (LVM) storage
  102. Manage logical volumes from the command line.
  103. Access networked attached storage with network file system (NFS)
  104. Access (secure) NFS shares.
  105. Access networked storage with SMB
  106. Use autofs and the command line to mount and unmount SMB file systems.
  107. Control and troubleshoot the Red Hat Enterprise Linux boot process
  108. Limit network communication with firewall
  109. Configure a basic firewall.
  110. Comprehensive review
  111. Practice and demonstrate knowledge and skills learned in this course.
  112.  
  113. Экзамен EX200
  114.  
  115. Understand and use essential tools
  116. Access a shell prompt and issue commands with correct syntax
  117. Use input-output redirection (>, >>, |, 2>, etc.)
  118. Use grep and regular expressions to analyze text
  119. Access remote systems using ssh
  120. Log in and switch users in multiuser targets
  121. Archive, compress, unpack, and uncompress files using tar, star, gzip, and bzip2
  122. Create and edit text files
  123. Create, delete, copy, and move files and directories
  124. Create hard and soft links
  125. List, set, and change standard ugo/rwx permissions
  126. Locate, read, and use system documentation including man, info, and files in /usr/share/doc
  127. Operate running systems
  128. Boot, reboot, and shut down a system normally
  129. Boot systems into different targets manually
  130. Interrupt the boot process in order to gain access to a system
  131. Identify CPU/memory intensive processes, adjust process priority with renice, and kill processes
  132. Locate and interpret system log files and journals
  133. Access a virtual machine's console
  134. Start and stop virtual machines
  135. Start, stop, and check the status of network services
  136. Securely transfer files between systems
  137. Configure local storage
  138. List, create, delete partitions on MBR and GPT disks
  139. Create and remove physical volumes, assign physical volumes to volume groups, and create and delete logical volumes
  140. Configure systems to mount file systems at boot by Universally Unique ID (UUID) or label
  141. Add new partitions and logical volumes, and swap to a system non-destructively
  142. Create and configure file systems
  143. Create, mount, unmount, and use vfat, ext4, and xfs file systems
  144. Mount and unmount CIFS and NFS network file systems
  145. Extend existing logical volumes
  146. Create and configure set-GID directories for collaboration
  147. Create and manage Access Control Lists (ACLs)
  148. Diagnose and correct file permission problems
  149. Deploy, configure, and maintain systems
  150. Configure networking and hostname resolution statically or dynamically
  151. Schedule tasks using at and cron
  152. Start and stop services and configure services to start automatically at boot
  153. Configure systems to boot into a specific target automatically
  154. Install Red Hat Enterprise Linux automatically using Kickstart
  155. Configure a physical machine to host virtual guests
  156. Install Red Hat Enterprise Linux systems as virtual guests
  157. Configure systems to launch virtual machines at boot
  158. Configure network services to start automatically at boot
  159. Configure a system to use time services
  160. Install and update software packages from Red Hat Network, a remote repository, or from the local file system
  161. Update the kernel package appropriately to ensure a bootable system
  162. Modify the system bootloader
  163. Manage users and groups
  164. Create, delete, and modify local user accounts
  165. Change passwords and adjust password aging for local user accounts
  166. Create, delete, and modify local groups and group memberships
  167. Configure a system to use an existing authentication service for user and group information
  168. Manage security
  169. Configure firewall settings using firewall-config, firewall-cmd, or iptables
  170. Configure key-based authentication for SSH
  171. Set enforcing and permissive modes for SELinux
  172. List and identify SELinux file and process context
  173. Restore default file contexts
  174. Use boolean settings to modify system SELinux settings
  175. Diagnose and address routine SELinux policy violations
  176. ------------- end code -------------
  177.  
  178. Получившиеся списки совмещаешь по темам в табличку, и по каждой теме делаешь следующее:
  179. а) пишешь в соседний столбик таблички, как ты собираешься делать то, что просит тема, напр.: "Create hard and soft links":
  180. ------------- code -------------
  181. $ ls
  182. $ touch 11111
  183. $ echo 22222 > 22222 # создали файлик и записали туда 22222, 6 байт
  184. $ ls -l
  185. total 8
  186. -rw-r--r-- 1 user staff 0 May 22 17:43 11111
  187. -rw-r--r-- 1 user staff 6 May 22 17:44 22222
  188. $ ls -li # посмотрели номер inode, он отличается от номера inode файла 11111
  189. total 8
  190. 14376413 -rw-r--r-- 1 user staff 0 May 22 17:43 11111
  191. 14376414 -rw-r--r-- 1 user staff 6 May 22 17:44 22222
  192. $
  193. $ ln 22222 33333 # создали хардлинк 33333
  194. $ ls -li # убедились, что номер inode тот же, что и у 11111, и что кол-во хардлинков показывается двойкой; можно для убедительности создать поддиректорию
  195. total 16
  196. 14376413 -rw-r--r-- 1 user staff 0 May 22 17:43 11111
  197. 14376414 -rw-r--r-- 2 user staff 6 May 22 17:44 22222
  198. 14376414 -rw-r--r-- 2 user staff 6 May 22 17:44 33333
  199. $ mkdir testdir
  200. $ ln 22222 testdir/44444 # и сделать ещё один хардлинк
  201. $ ls -li . testdir/ # всё ещё тот же номер inode 14376414, кол-во хардлинков показывается как 3
  202. .:
  203. total 16
  204. 14376413 -rw-r--r-- 1 user staff 0 May 22 17:43 11111
  205. 14376414 -rw-r--r-- 3 user staff 6 May 22 17:44 22222
  206. 14376414 -rw-r--r-- 3 user staff 6 May 22 17:44 33333
  207. 14376418 drwxr-xr-x 3 user staff 102 May 22 17:45 testdir
  208.  
  209. testdir/:
  210. total 8
  211. 14376414 -rw-r--r-- 3 user staff 6 May 22 17:44 44444
  212. $ rm -rf testdir
  213. $ chmod 600 22222 # смотрим, как изменяются права на файлы
  214. $ ls -li # а никак
  215. total 16
  216. 14376413 -rw-r--r-- 1 user staff 0 May 22 17:43 11111
  217. 14376414 -rw------- 2 user staff 6 May 22 17:44 22222
  218. 14376414 -rw------- 2 user staff 6 May 22 17:44 33333
  219. $ rm -f 22222
  220. $ cat 33333 # удалили “оригинал”, содержимое в копии одно и то же
  221. 22222
  222. $
  223. ------------- end code -------------
  224. б) если что-то не знаешь, как делать, то ищешь в первую очередь на http://docs.redhat.com - там есть отличные гайды; во вторую очередь ищешь в других местах; хороший вариант - задать вопрос на IRC каналах, посвящённых Linux’у, и в реалтайме получить ответ
  225. в) проходишь полностью все темы таким образом; делаешь лабы сам себе по каждому пункту:
  226. т.к. у нас тут Red Hat Linux, то лабы делаешь на CentOS, или получаешь на redhat.com тестовую подписку на RHEL;
  227. для лаб нужно иметь 2-3 вируталки 1vCPU 512MB RAM (768MB на время инсталляции), 4-6GB HDD
  228. г) доводишь до автоматизма: делаешь лабы уже без написаных собой же подсказок, и на время
  229. д) если есть деньги - сдай экзамены, это может помочь получить хорошую работу и, иногда, можно попросить зарплату выше рынка
  230.  
  231. Ориентировочно прокачаться до уровня RHCSA с нуля - 2-3 месяца, с RHCSA до RHCE 3-4 месяца.
  232.  
  233. === 3 ===
  234. Прокачавшись до уровня RHCSA меняй работу, чтобы ты занимался только Linux’ами, желательно RHEL/SLES, и, в идеале, чтобы на новой работе использовались коммерческие UNIX’ы (HP-UX, AIX, Solaris). Ради такого можно и переехать, например, в Казань, работать в ICL Services
  235. Так же в то же время тебе нужно будет получить базовые знания по сетям (примерно уровень CCNA) и виртуализации
  236. Не отвлекайся на несвойственную тебе работу. Напр. ковыряться с сайтом - это работа web-программиста, а ковыряние с Oracle DB/MySQL - работа DBA. Твоя задача - поддержка инфраструктуры - операционной системы и серверов. Не становись многоруким Шивой.
  237.  
  238. === 4 ===
  239. Сдай экзамены на RHCSA и RHCE
  240. Делай упор на знания, которые нужны в очень больших компаниях, и применяй их (внедряй эти практики, если каких-то из них ещё нет в компании):
  241. - автоматизированное и массовое развёртывание серверов RHEL/SLES,
  242. - массовое управление ими же,
  243. - тестирование и деплоймент патчей,
  244. - базовый стек ITIL (incident/change/problem management)
  245. - мониторинг (включаяя capacity planning/performance management)
  246. - кластеризация: начни с high availability/load balancing; если будет необходимость, то high performance/workload позже выучишь
  247. Получи хотя бы поверхностные знания о SAN, и более глубокие знания по виртуализации (включая облака)
  248. Старайся не идти на поводу у руководства, пытаясь сэкономить на всём, и используя в работе только бесплатный софт. Если есть возможность, работай с коммерческим ПО: системы резервного копирования, коммерческие системы мониторинга, кластерное ПО, и пр.пр.
  249.  
  250. === 5 ===
  251. Выучи и сдай хотя бы ITIL Foundation
  252.  
  253. === 6 ===
  254. Учи доступный тебе на работе коммерческий UNIX: AIX, HP-UX, Solaris. Меняй работу, если их на твоей работе нет. Из перечисленных трёх, перспективы получить хорошую работу есть по каждому из них, но по моему скромному мнению, рынок вакансий на HP-UX и Solaris сильно меньше, а AIX может даже и растёт
  255.  
  256. === 7 ===
  257. Учи и сертифицируйся по выбранному UNIX’у. Меняй работу, если нужно.
  258.  
  259. Примерно так свои 150-190-230-250 тысяч можно получать в Москве.
  260.  
  261. === 8 ===
  262. Готовь документы и уезжай из страны. Может позже вернёшься, если захочешь.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement