반응형

https://www.google.com.vn/?gfe_rd=cr&ei=gSbqV4PACufC8AeKgIHYDA#safe=strict&q=selinux+%EB%81%84%EA%B8%B0


setenforce 0 하면 일시적으로 꺼짐


http://sangchul.kr/67

반응형
반응형

> Apache 에러 로그 메시지
위치 : APACHE_HOME/logs/localhost-error_log

[Thu Sep 26 17:02:51.401841 2013] [core:error] [pid 29603:tid 140488246032128] (13)Permission denied: [client 211.222.111.123:62022] AH00035: access to / denied (filesystem path '/home/webuser/htdocs') because search permissions are missing on a component of the path


> 해당 계정의 디렉토리에 일반 사용자 실행권한을 줌
# chmod 711 /home/webuser

> 계정 초기 생성 시 기본 권한 : drwx------
[web@webuser ~]$ ls -al /home
drwx------.  5 webuser   webuser   4096 2013-09-26 19:46 webuser

[web@webuser ~]$ chmod 711 /home/webuser
> 권한 변경후
[web@webuser ~]$ ls -al /home
drwx--x--x.  5 webuser webuser 4096 2013-09-26 19:46 webuser

[web@webuser ~]$ ls -al /home/webuser/
drwxrwxr-x. 3 webuser webuser 4096 2013-09-26 19:46 htdocs 
`**해당 웹 디렉토리의 권한을 꼭 775로 바꿔줘야 함**`



# client denied by server configuration
Apache 2.4에서 에러로그(error.log)에 'client denied by server configuration' 오류 발생하며 접속되지 않는 증상

Directory 부분에 Require all granted 으로 설정

httpd.conf

202 
203     AllowOverride none
204 #    Require all denied
205     Require all granted
206 

353 <Directory "/app/server/apache-2.4.9/cgi-bin">
354     AllowOverride None
355     Options None
356     Require all granted
357 

> 모든 요청 허가
Apache 2.2 configuration:
Order allow,deny
Allow from all

Apache 2.4 configuration:
Require all granted

> 모든 요청 거부
Apache 2.2 configuration:
Order deny,allow
Deny from all

Apache 2.4 configuration:
Require all denied

반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

mod_rewrite 활성화  (0) 2019.07.15
selinux 끄기  (0) 2019.07.15
Linux Shell MOTD(로그인 후 배너)  (0) 2019.07.15
Jenkins 다른 계정으로 구동  (0) 2019.07.15
GCC .so만들기  (0) 2010.10.21
반응형

iis 동접 확인 방법윈도우서버에서 현재 웹 동시접속자 정보를 확인할수 있는 방법으로 netstat

명령을 사용하여 간단하게 카운트 할 수 있다.

시작 - 실행 - cmd

c:>netstat -ano | find /c "80" 입력하면 현재 접속자 수를 확인가능하다



c:> netstat -an | find "80" | find /c "ESTABLISHED"

반응형

'Tip & Tech > Windows' 카테고리의 다른 글

IIS 응용프로그램 풀 재시작 커멘드  (0) 2019.07.15
CORS IIS7  (0) 2019.07.15
CentOS Redmine(레드마인) 설치  (0) 2019.07.15
MSSQL에서 SP 내용 알아내는 법  (0) 2019.07.15
IIS FTP passive로 List가 되지 않을 때  (0) 2019.07.15
반응형

CORS on IIS7

For Microsoft IIS7, merge this into the web.config file at the root of your application or site: 
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<add name="Access-Control-Allow-Origin" value="*" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

If you don't have a web.config file already, or don't know what one is, just create a new file called web.config containing the snippet above

반응형
반응형

https://www.server-world.info/en/note?os=CentOS_7&p=redmine

반응형

'Tip & Tech > Windows' 카테고리의 다른 글

iis 동접 확인 방법  (0) 2019.07.15
CORS IIS7  (0) 2019.07.15
MSSQL에서 SP 내용 알아내는 법  (0) 2019.07.15
IIS FTP passive로 List가 되지 않을 때  (0) 2019.07.15
WindowsXP 자동 업데이트 후 재시작 막기.  (0) 2010.12.16
반응형


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. project.domain.com (redmine)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. www.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


echo -en "\033[1;45m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. ap.domain.com (php5)' >> /etc/motd
echo -e '2. www.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd


**for live**

echo -en "\033[1;36m" > /etc/motd
echo -e '\n' >> /etc/motd
echo -e '## LIVE SERVER ##' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -en "\033[1;45m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -e '| This server has below service(s) |' >> /etc/motd
echo -e '+----------------------------------+' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd
echo -en "\033[1;42m" >> /etc/motd
echo -e '1. member.domain.com (php5)' >> /etc/motd
echo -e '2. static.domain.com (php5)' >> /etc/motd
echo -en "\033[0m" >> /etc/motd
echo -e '\n' >> /etc/motd

반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

selinux 끄기  (0) 2019.07.15
Apache AH00035 오류, Tomcat SSL Permission Denied  (0) 2019.07.15
Jenkins 다른 계정으로 구동  (0) 2019.07.15
GCC .so만들기  (0) 2010.10.21
PHP 확장모듈 만들기  (0) 2010.10.21
반응형

How to run Jenkins under a different user in Linux [Redhat]
When I wanted to change the Jenkins user I first checked /etc/init.d/jenkins script.  There I found two important variables $JENKINS_CONFIG(=/etc/sysconfig/jenkins) and $JENKINS_USER. So if you want, you can change the JENKINS_USER variable in the /etc/init.d/jenkins file; but it is not the correct way to do.

To change the jenkins user, open the /etc/sysconfig/jenkins (in debian this file is created in /etc/default) and change the JENKINS_USER to whatever you want. Make sure that user exists in the system (you can check the user in the /etc/passwd file ).
**$JENKINS_USER="manula"**
Then change the ownership of the Jenkins home, Jenkins webroot and logs.
**chown -R manula:manula /var/lib/jenkins 
chown -R manula:manula /var/cache/jenkins
chown -R manula:manula /var/log/jenkins**
Then restarted the Jenkins jenkins and check the user has changed using a ps command 
/etc/init.d/jenkins restart
ps -ef | grep jenkins

반응형

'Tip & Tech > Linux | Unix' 카테고리의 다른 글

Apache AH00035 오류, Tomcat SSL Permission Denied  (0) 2019.07.15
Linux Shell MOTD(로그인 후 배너)  (0) 2019.07.15
GCC .so만들기  (0) 2010.10.21
PHP 확장모듈 만들기  (0) 2010.10.21
shell scripting - date 사용하기  (0) 2010.10.21
반응형


MSSQL 에서 SP 내용 알아내는 법


sp_helptext storedProcedureName

 * 주의사항
  sp_helptext 를 사용할 때는 DB 를 지정한 후에 사용해야 한다. 

반응형

'Tip & Tech > Windows' 카테고리의 다른 글

CORS IIS7  (0) 2019.07.15
CentOS Redmine(레드마인) 설치  (0) 2019.07.15
IIS FTP passive로 List가 되지 않을 때  (0) 2019.07.15
WindowsXP 자동 업데이트 후 재시작 막기.  (0) 2010.12.16
MSSQL Query : UnixTime >> DateTime  (0) 2010.10.21
반응형

공유기에 ftp pasv설정이 없으면 dmz로 바꾸시는게 거의 답입니다. (pasv가 서버->인터넷으로 tcp 1024-65535입니다....)

- 아마존 시큐리티그룹에 해당 IP Inbound 로 1024-65535 레인지 허용해야 함

반응형
반응형


$> net stop wuauserv


다시 킬려면

$> net start wuauserv
반응형

+ Recent posts