chown owner-user file chown owner-user:owner-group file chown owner-user:owner-group directory chown options owner-user:owner-group file
вторник, 28 октября 2014 г.
Chown how to
Charlock Holmes issue
After upgrading Ubuntu to 14.04 I have problem with charlock_holmes gem
/opt/extra/apps/project/shared/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': libicuuc.so.48: cannot open shared object file: No such file or directory - /opt/extra/apps/project/shared/bundle/ruby/1.9.1/gems/charlock_holmes-0.7.3/lib/charlock_holmes/charlock_holmes.so (LoadError)
Solution: just delete bundled gems from project dir and run bundle.
#rm -rf /opt/extra/apps/project/shared/bundle #bundle
Start service after reboot on Ubuntu
sudo update-rc.d nginx defaults
Details and examples:
http://codedecoder.wordpress.com/2013/03/12/system-startstop-links-for-etcinit-dnginx-already-exist/
Details and examples:
http://codedecoder.wordpress.com/2013/03/12/system-startstop-links-for-etcinit-dnginx-already-exist/
понедельник, 27 октября 2014 г.
Nginx + jenkins config
https://wiki.jenkins-ci.org/display/JENKINS/Running+Jenkins+behind+Nginx
server {
listen 80;
server_name jenkins.domain.tld;
location / {
proxy_pass http://localhost:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 150;
proxy_send_timeout 100;
proxy_read_timeout 100;
proxy_buffers 4 32k;
client_max_body_size 8m;
client_body_buffer_size 128k;
}
}
Mailx - send email from Ubuntu terminal
I believe mailx is what you're looking for.
This will also install postfix at a minimum, and will give you a few options to set postfix up. If you have an SMTP server on your LAN, choose 'satellite system', then enter the mail domain name, and lastly the IP address of your SMTP server.
To use:
You can also use a file for the body:
| |||||||||||||||||||||
|
Install imagemagick on Ubuntu 14.04
sudo apt-get install libmagickwand-dev imagemagickhttp://superuser.com/questions/163818/how-to-install-rmagick-on-ubuntu-10-04
Подписаться на:
Сообщения (Atom)