Использование sudo без пароля.
Редактируем файл:
vi /etc/init.d/sudoers
добавляем строчку: (%username% меняем на имя пользователя или группы)
%username% ALL=(ALL) NOPASSWD:/etc/init.d/tomcat
Использование:
sudo /etc/init.d/tomcat restart
12 мар. 2010 г.
11 мар. 2010 г.
Error code: 0x80072efd
Microsoft Security Essentials can't download updates
Microsoft Security Essentials can't update via ISA Server
думаю та же проблема и для Squid
Error code: 0x8024402c 0x80072efd
Решение:
Microsoft Security Essentials использует другие настройки для определения прокси сервера, установить их можно следующим образом (для Windows XP):
proxycfg -p 192.168.x.x:8080
для Vista и Windows 7 необходимо использовать:
netsh winhttp set proxy 192.168.x.x:8080
если получили ошибку:
Error writing proxy settings. (5) Access is denied. ,то
Start->All Programs -> Accessories ->
Find Commnad Prompt, нажмите правую кнопку мыши и выберете Run as administrator
и уже тут выполните netsh
Логи:
c:\windows\windowsupdate.log
Microsoft Security Essentials can't update via ISA Server
думаю та же проблема и для Squid
Error code: 0x8024402c 0x80072efd
Решение:
Microsoft Security Essentials использует другие настройки для определения прокси сервера, установить их можно следующим образом (для Windows XP):
proxycfg -p 192.168.x.x:8080
для Vista и Windows 7 необходимо использовать:
netsh winhttp set proxy 192.168.x.x:8080
если получили ошибку:
Error writing proxy settings. (5) Access is denied. ,то
Start->All Programs -> Accessories ->
Find Commnad Prompt, нажмите правую кнопку мыши и выберете Run as administrator
и уже тут выполните netsh
Логи:
c:\windows\windowsupdate.log
28 янв. 2010 г.
php iis
Установка php под iis.
Как ISAPI
Во вкладке ISAPI Filters, добавить новый ISAPI filter (например php4), указать путь к файлу php4isapi.dll (либо php5isapi.dll)
Во вкладке 'Home Directory', нажать на 'Configuration'. Добавить новое значение в Application Mappings. Использовать путь к файлу php4isapi.dll (или php5isapi.dll) как Executable, и установить .php как Extension, оставить Method exclusions пустым, и проверить Script engine чекбокс.
Web Service Extentions
Add a new Web Service Extention
Extantion name: php5
Required files: указать путь к файлу php4isapi.dll (или php5isapi.dll)
установить флажок в Set extentions status to Allow
Остановить IIS полностью (например в консоли NET STOP iisadmin)
Запустить IIS снова (NET START w3svc)
Возможно понадобиться положить файл php.ini например в C:\windows\system32 или в любое другое место куда прописан PATH.
и не забываем перезапускать IIS
Как ISAPI
Во вкладке ISAPI Filters, добавить новый ISAPI filter (например php4), указать путь к файлу php4isapi.dll (либо php5isapi.dll)
Во вкладке 'Home Directory', нажать на 'Configuration'. Добавить новое значение в Application Mappings. Использовать путь к файлу php4isapi.dll (или php5isapi.dll) как Executable, и установить .php как Extension, оставить Method exclusions пустым, и проверить Script engine чекбокс.
Web Service Extentions
Add a new Web Service Extention
Extantion name: php5
Required files: указать путь к файлу php4isapi.dll (или php5isapi.dll)
установить флажок в Set extentions status to Allow
Остановить IIS полностью (например в консоли NET STOP iisadmin)
Запустить IIS снова (NET START w3svc)
Возможно понадобиться положить файл php.ini например в C:\windows\system32 или в любое другое место куда прописан PATH.
и не забываем перезапускать IIS
21 янв. 2010 г.
esxi 4 ssh enable
Как включить ssh в esxi. Как получить доступ по ssh к esxi.
Как залить образ на esxi.
Подходит для версий 3 и 4
VMware-VMvisor-InstallerCD-3.5.0_Update_3-123629.i386.iso
VMware-VMvisor-Installer-4.0.0-171294.x86_64.iso
VMware-VMvisor-Installer-4.0.0.Update01-208167.x86_64.iso
Образы можно бесплатно скачать с официального сайта.
When you firs install ESXi Server (the installable version), by default the service ssh is desactivated. Tech Support Mode provides a command-line interface that can be used to diagnose and repair ESX Server 3i hosts. But it is possible very easy to activate SSH. Here is how:
Requirements:
You have to have direct access to console
1.) While you are at the console hit ALT + F1
2.) Type in " unsupported " and hit Enter
3.) Go ahead and type the root password
4.) Go and edit the /etc/inetd.conf file
5.) Uncoment the line where you can see "#ssh" (line 32). Remove the "#" mark at the begining.
6.) Type "ps -a |grep inetd"
7.) Kill the process
8.) start inetd
или reboot вместо пунктов 6 7 и 8
Как залить образ на esxi.
Подходит для версий 3 и 4
VMware-VMvisor-InstallerCD-3.5.0_Update_3-123629.i386.iso
VMware-VMvisor-Installer-4.0.0-171294.x86_64.iso
VMware-VMvisor-Installer-4.0.0.Update01-208167.x86_64.iso
Образы можно бесплатно скачать с официального сайта.
When you firs install ESXi Server (the installable version), by default the service ssh is desactivated. Tech Support Mode provides a command-line interface that can be used to diagnose and repair ESX Server 3i hosts. But it is possible very easy to activate SSH. Here is how:
Requirements:
You have to have direct access to console
1.) While you are at the console hit ALT + F1
2.) Type in " unsupported " and hit Enter
3.) Go ahead and type the root password
4.) Go and edit the /etc/inetd.conf file
5.) Uncoment the line where you can see "#ssh" (line 32). Remove the "#" mark at the begining.
6.) Type "ps -a |grep inetd"
7.) Kill the process
8.) start inetd
или reboot вместо пунктов 6 7 и 8
После можно использовать любой ssh клиент.
Очень удобен WinSCP клиент для FAR
Очень удобен WinSCP клиент для FAR
15 янв. 2010 г.
apache2-MPM is needed by apache2-2.2.4-70.i586
Install apache from rpm on SUSE 10.3 (opensuse)
При установке апача на SUSE 10.3 из rpm
интересные зависимости попадаются, такие как:
apache2-MPM is needed by apache2-2.2.4-70.i586
это решается установкой пакета:
apache2-prefork-2.2.4-70.i586.rpm
но! так как он сам требует уже установленный apache2, появляется
замкнутая цикличность, поэтому делаем:
rpm -i --nodeps apache2-prefork-2.2.4-70.i586.rpm
затем устанавливаем сам апач.
Обычные каменты:
Линуксовода: собирайте все с сорцов ;)
Виндовода: я же говорил что линукс отстой ;)
При установке апача на SUSE 10.3 из rpm
интересные зависимости попадаются, такие как:
apache2-MPM is needed by apache2-2.2.4-70.i586
это решается установкой пакета:
apache2-prefork-2.2.4-70.i586.rpm
но! так как он сам требует уже установленный apache2, появляется
замкнутая цикличность, поэтому делаем:
rpm -i --nodeps apache2-prefork-2.2.4-70.i586.rpm
затем устанавливаем сам апач.
Обычные каменты:
Линуксовода: собирайте все с сорцов ;)
Виндовода: я же говорил что линукс отстой ;)
13 янв. 2010 г.
wildcard in microsoft dns server 2000/2003
Использование "*" в MS DNS
Если не работает то возможно потому что для этого домена включено:
Use WINS forward lookup
Если нужно чтоб работал wildcard, необходимо выключить.
Как завести wildcard в DNS:
Enter DNS entry in Windows Server 2003
1. Click Start, click Control Panel, click Administrative Tools, and then click DNS.
2. On the Action menu, click Connect to DNS Server.
3. In Connect to DNS Server, click The following computer.
4. Type the DNS computer name with the wildcard: *.example
(для example.test.ru)
5. Select the Connect to the specified computer now check box, and then click OK.
Возможное решение для 2000:
They work in W2K. Here is the way:
1. Search the registry key:
HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\DNS\PARAMETERS
add the dword value: LooseWildcarding
Set it to 1
2. Restart DNS-Service
3. If you want *.yourdomain.com open the zone yourdomain.com and add a subzone with the name *
4. In this subzone add a host entry with no name, confirm the warnig.
5. Thatґs it
Если не работает то возможно потому что для этого домена включено:
Use WINS forward lookup
Если нужно чтоб работал wildcard, необходимо выключить.
Как завести wildcard в DNS:
Enter DNS entry in Windows Server 2003
1. Click Start, click Control Panel, click Administrative Tools, and then click DNS.
2. On the Action menu, click Connect to DNS Server.
3. In Connect to DNS Server, click The following computer.
4. Type the DNS computer name with the wildcard: *.example
(для example.test.ru)
5. Select the Connect to the specified computer now check box, and then click OK.
Возможное решение для 2000:
They work in W2K. Here is the way:
1. Search the registry key:
HKLM\SYSTEM\CURRENTCONTROLSET\SERVICES\DNS\PARAMETERS
add the dword value: LooseWildcarding
Set it to 1
2. Restart DNS-Service
3. If you want *.yourdomain.com open the zone yourdomain.com and add a subzone with the name *
4. In this subzone add a host entry with no name, confirm the warnig.
5. Thatґs it
29 дек. 2009 г.
Как залить файл на Hyper-V сервер
Сonfigure the firewall to all file sharing on the Hyper-V server.
Настроить файрвол:
netsh firewall set portopening ALL 139 “NB1"
netsh firewall set portopening ALL 445 "NB2"
далее со своего компьютера
cd file://hyper-v/c$
Настроить файрвол:
netsh firewall set portopening ALL 139 “NB1"
netsh firewall set portopening ALL 445 "NB2"
далее со своего компьютера
cd file://hyper-v/c$
24 дек. 2009 г.
port in IPN handler URL
PayPal
Instant Payment Notification (IPN) simulator
IPN handler URL
в url можно использовать только 80 и 443 порт.
Обидно.
Instant Payment Notification (IPN) simulator
IPN handler URL
в url можно использовать только 80 и 443 порт.
Обидно.
23 дек. 2009 г.
error: 0xc00000e9
Windows
You need to change the BIOS boot priority so that the optical drive is
first, not the HDD. Then you will need to affect a boot repair as described
here:
http://support.microsoft.com/kb/927392
solved
turn off hdd booting in bios
You need to change the BIOS boot priority so that the optical drive is
first, not the HDD. Then you will need to affect a boot repair as described
here:
http://support.microsoft.com/kb/927392
solved
turn off hdd booting in bios
Подписаться на:
Сообщения (Atom)