1 On MacOS
Using brew, install FUSE.
brew cask install osxfuse
Now install SSHFS:
brew install sshfs
2 On Ubuntu/Debian
sudo apt-get install sshfs
3 On Windows
Find the desired version of win-sshfs from this page and download it.
Valentin Badiul
1 On MacOS
Using brew, install FUSE.
brew cask install osxfuse
Now install SSHFS:
brew install sshfs
2 On Ubuntu/Debian
sudo apt-get install sshfs
3 On Windows
Find the desired version of win-sshfs from this page and download it.
Jenkins
git-ftp init -u $FTP_USERNAME -p $FTP_PASSWORD ftp://google.com/
ubuntu https://www.digitalocean.com/community/tutorials/how-to-install-jenkins-on-ubuntu-16-04
отдельно установить java
https://github.com/git-ftp/git-ftp/edit/master/INSTALL.md
# INSTALL You can find instructions for: - [Linux/Unix based systems using make](#linuxunix-based-systems-using-make) - [Debian, Ubuntu and others using apt](#debian-ubuntu-and-others-using-apt) - [ArchLinux](#archlinux-aur-unofficial) - [MacOS](#macos) - [Windows](#windows) ## Linux/Unix based systems using make Note: Make sure Git and cURL are installed. This should work on MacOS, Debian, Ubuntu, Fedora, RedHat, etc. The easiest way is to use Git for installing: ```sh git clone https://github.com/git-ftp/git-ftp.git cd git-ftp # choose the newest release tag="$(git tag | grep '^[0-9]*\.[0-9]*\.[0-9]*$' | tail -1)" # checkout the latest tag git checkout "$tag" sudo make install ``` Updating using git: ```sh git fetch git checkout "$(git tag | grep '^[0-9]*\.[0-9]*\.[0-9]*$' | tail -1)" sudo make install ``` ## Debian, Ubuntu and others using apt At least Debian and Ubuntu provide git-ftp in their main repositories. ```sh sudo apt-get install git-ftp ``` If you would like the newest release maintained by Git-ftp, you can add the PPA: ```sh sudo -s add-apt-repository ppa:git-ftp/ppa # On Debian, you need to modify the sources list to use the same PPA source /etc/*-release if [ "$ID" = "debian" ]; then dist="$(echo /etc/apt/sources.list.d/git-ftp-ppa-*.list | sed 's/^.*ppa-\(.*\)\.list$/\1/')" sed -i.backup "s/$dist/precise/g" /etc/apt/sources.list.d/git-ftp-ppa-*.list fi apt-get update ``` ## ArchLinux (AUR: unofficial) See https://aur.archlinux.org/packages/?O=0&C=0&SeB=nd&K=git-ftp&SB=v&SO=d&PP=50&do_Search=Go ## MacOS First, ensure you have installed Xcode and command line tools. Command line tools can be download at https://developer.apple.com/download/more/ or via command: ``` xcode-select --install ``` Using homebrew: ```sh brew install git brew install curl --with-libssh2 brew install brotli brew install git-ftp ``` ## Windows There are at least two ways to install git-ftp on Windows. - Using Git for Windows, former msysgit (recommended) - Using cygwin ### Git for Windows, former msysgit (recommended) Install [Git for Windows](https://git-for-windows.github.io/). It comes with curl installed, but it doesn't support SFTP by default. In order to use SFTP, [download curl](http://curl.haxx.se/download.html) for Windows with SFTP support. Win32 2000/XP MSI or Win64 2000/XP x86_64 MSI is recommended. If you installed curl, then remove `bin/curl.exe` from your Git for Windows installation directory. It will fall back to the newly installed version. Finally, open the Git Bash which is located in `C:\Program Files (x86)\Git` by default. ```bash curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > /bin/git-ftp chmod 755 /bin/git-ftp ``` *Note: the `/bin` directory is an alias. By default this is the same as `C:\Program Files (x86)\Git\usr\bin`.* ### cygwin Install cygwin and install the package 'curl'. Then open the cygwin console and install Git-ftp with the following commands: ```bash curl https://raw.githubusercontent.com/git-ftp/git-ftp/master/git-ftp > /bin/git-ftp chmod 755 /bin/git-ftp ``` ### Git for Windows and cygwin both installed If you have both Git for Windows and cygwin installed on Windows and want to use Git for Windows for Git commands, you may get an error "No such file or directory" for a path starting with "/cygdrive/", for example: creating `/cygdrive/c/TEMP/git-ftp-m7GH/delete_tmp': No such file or directory The problem is that Git-ftp use commands from both Git for Windows and cygwin directories. But by default, cygwin is configured to start paths with the prefix "/cygdrive" while Git for Windows starts paths with "/". To fix the problem, open file "<cygwin>\etc\fstab" (e.g. "c:\cygwin\etc\fstab") and change parameter "/cygwin/" to "/", for example: # This is default: none /cygdrive/ cygdrive binary,posix=0,user 0 0 change to: # This is changed: none / cygdrive binary,posix=0,user 0 0 After this, close all console windows and try again.
vk.com/video13387403_456239249
On RPM-based distributions, such as Red Hat Enterprise Linux (RHEL), CentOS, Fedora or Scientific Linux, you can install Jenkins through yum
.
Recent versions are available in a YUM repository.
Add the Jenkins repository to the yum repos, and install Jenkins from here.
sudo wget -O /etc/yum.repos.d/jenkins.repo
http://pkg.jenkins-ci.org/redhat/jenkins.repo
sudo rpm --import
https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
There is also a LTS YUM repository for the LTS Release Line
sudo wget -O /etc/yum.repos.d/jenkins.repo
http://pkg.jenkins-ci.org/redhat-stable/jenkins.repo
sudo rpm --import
https://jenkins-ci.org/redhat/jenkins-ci.org.key
sudo yum install jenkins
Jenkins requires Java in order to run, yet certain distros don’t include this by default. To install the Open Java Development Kit (OpenJDK) run the following:
sudo yum install java |
Note: If running CentOS, ensure you follow the guide below.
sudo service jenkins start/stop/restart
sudo chkconfig jenkins on
Note: if you get the following error message, ensure that Java has been installed:
Starting jenkins (via systemctl): Job for jenkins.service failed. See 'systemctl status jenkins.service' and 'journalctl -xn' for details. [FAILED] |
/etc/init.d/jenkins
for more details.jenkins
‘ user is created to run this service. If you change this to a different user via the config file, you must change the owner of /var/log/jenkins, /var/lib/jenkins, and /var/cache/jenkins./var/log/jenkins/jenkins.log
. Check this file if you are troubleshooting Jenkins./etc/sysconfig/jenkins
will capture configuration parameters for the launch./etc/yum.repos.d/jenkins.repo
firewall-cmd --permanent -- new -service=jenkins firewall-cmd --permanent --service=jenkins --set- short = "Jenkins Service Ports" firewall-cmd --permanent --service=jenkins --set-description= "Jenkins service firewalld port exceptions" firewall-cmd --permanent --service=jenkins --add-port= 8080 /tcp firewall-cmd --permanent --add-service=jenkins firewall-cmd --zone= public --add-service=http --permanent firewall-cmd --reload |
firewall-cmd --list-all |
Jenkins requires Java in order to run, however yum install jenkins
does not enforce that java is already installed. Check to make sure that you already hava java installed by running java -version
. To further make things difficult for CentOS users, the default CentOS version of Java is not compatible with Jenkins. Jenkins typically works best with a Sun implementation of Java, which is not included in CentOS for licensing reasons.
If you get output similar to the following, it means you’re using the default (GCJ) version of Java, which will not work with Jenkins:
java -version java version "1.7.0" gij (GNU libgcj) version 4.4 . 6 20110731 (Red Hat 4.4 . 6 - 3 ) |
To correct this, you may need to remove the GCJ version of Java and install a Sun-compatible version.
If you received the above output, uninstall the default java:
yum remove java |
Then after you’ve uninstalled Java (or if you didn’t have Java installed at all to begin with). You need to install a Sun-compatible version of Java. The easiest approach is using OpenJDK, which is available through the EPEL repository (alternatively you may install an official RPM directly from Oracle). To install OpenJDK run the following:
yum install java- 1.8 . 0 -openjdk |
Depending on your version of CentOS, the package name for OpenJDK may differ. Use yum search openjdk
to check for the name of the package. If OpenJDK is not found at all through yum, you probably need to install the EPEL yum repository. After installation, you should be able to get the following output for java -version:
java -version openjdk version "1.8.0_161" OpenJDK Runtime Environment (build 1.8 .0_161-b14) OpenJDK 64 -Bit Server VM (build 25.161 -b14, mixed mode) |
https://www.linuxtechi.com/install-configure-jenkins-on-centos-7-rhel-7/ https://wiki.jenkins.io/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions
RabbitMQ is a widely used open-source message broker written in the Erlang programming language. As a message-oriented middleware, RabbitMQ can be used to implement the Advanced Message Queuing Protocol (AMQP) on all modern operating systems.
This article explains how to install RabbitMQ on a Vultr CentOS 7 server instance.
Before getting started, you need to:
Use the following commands to update your CentOS 7 system to the latest stable status:
sudo yum install epel-release
sudo yum update
sudo reboot
Since RabbitMQ is written in Erlang, you need to install Erlang before you can use RabbitMQ:
cd ~
wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm
sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm
sudo yum install erlang
Verify your installation of Erlang:
erl
You will be brought into the Erlang shell which resembles:
Erlang/OTP 18 [erts-7.3] [source-d2a6d81] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V7.3 (abort with ^G)
1>
Press Ctrl+C
twice to quit the Erlang shell.
Use the following commands to install the latest version of RabbitMQ which is 3.6.1 at the time of writing:
cd ~
wget https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.1/rabbitmq-server-3.6.1-1.noarch.rpm
sudo rpm --import https://www.rabbitmq.com/rabbitmq-signing-key-public.asc
sudo yum install rabbitmq-server-3.6.1-1.noarch.rpm
In order to access the RabbitMQ remote management console, you need to allow inbound TCP traffic on ports 4369, 25672, 5671, 5672, 15672, 61613, 61614, 1883, and 8883.
sudo firewall-cmd --zone=public --permanent --add-port=4369/tcp --add-port=25672/tcp --add-port=5671-5672/tcp --add-port=15672/tcp --add-port=61613-61614/tcp --add-port=1883/tcp --add-port=8883/tcp
sudo firewall-cmd --reload
Start the RabbitMQ server and enable it to start on system boot:
sudo systemctl start rabbitmq-server.service
sudo systemctl enable rabbitmq-server.service
You can check the status of RabbitMQ with:
sudo rabbitmqctl status
Enable the RabbitMQ management console so that you can monitor the RabbitMQ server processes from a web browser:
sudo rabbitmq-plugins enable rabbitmq_management
sudo chown -R rabbitmq:rabbitmq /var/lib/rabbitmq/
Next, you need to setup an administrator user account for accessing the RabbitMQ server management console. In the following commands, “mqadmin” is the administrator’s username, “mqadminpassword” is the password. Remember to replace them with your own ones.
sudo rabbitmqctl add_user mqadmin mqadminpassword
sudo rabbitmqctl set_user_tags mqadmin administrator
sudo rabbitmqctl set_permissions -p / mqadmin ".*" ".*" ".*"
Now, visit the following URL:
http://[your-vultr-server-IP]:15672/
Log in with the credentials you had specified earlier. You will be greeted with the RabbitMQ remote management console, where you can learn more about RabbitMQ. Enjoy!
http://www.rabbitmq.com/tutorials/tutorial-one-php.html
First you have to go to the /tmp directory
cd /tmp
Download the composer.phar file
curl -sS https://getcomposer.org/installer | php
Move it to /usr/local/bin/
mv composer.phar /usr/local/bin/composer
Now you can to use the command composer globally.
http://xdebug.org/install.php#configure-phpDebugger Configuration Validation with PhpStormon CentOS: 1. You need to install PHP’s devel package for PHP commands execution yum install php-devel yum install php-pear 2. Next install GCC and GCC C++ compilers to compile Xdebug extension yourself. yum install gcc gcc-c++ autoconf automake 3. Compile Xdebug pecl install Xdebug 4. Find the php.ini file using locate php.ini And add the following line [xdebug] zend_extension="/usr/lib64/php/modules/xdebug.so" xdebug.remote_enable = 1 5. Restart Apache service httpd restart 6. Test if it works – create test.php with the following code phpinfo()
PHP72
yum install --enablerepo=epel,remi-php72 php-devel yum install --enablerepo=epel,remi-php72 php-pear yum install gcc gcc-c++ autoconf automake nano /etc/php.ini в конце добавляем [xdebug] zend_extension="/usr/lib64/php/modules/xdebug.so" xdebug.remote_enable = 1 pecl install xdebug sudo systemctl restart php-fpm
В файлe php.ini добавить раздел [xdebug] с требуемыми параметрами, вот что содержится в моем файле: [xdebug] xdebug.default_enable=on xdebug.remote_enable=on xdebug.remote_autostart=on xdebug.remote_handler=dbgp xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000 xdebug.idekey="netbeans-xdebug" xdebug.remote_log="/tmp/xdebug_log.log" xdebug.profiler_output_dir="/tmp"
В случае необходимости создать исключения для порта 9000:
semanage port -a -t http_port_t -p tcp 9000
-J-Dorg.netbeans.modules.php.dbgp.level=400
SF 2 console if not work на самом сервере выполнить
export XDEBUG_CONFIG=”remote_host=192.168.80.254 idekey=PHPSTORM”
echo $XDEBUG_CONFIG
/etc/php/7.0/mods-available
sudo service php7.0-fpm restart
export XDEBUG_CONFIG=’remote_host=192.168.81.228 idekey=PHPSTORM’
export XDEBUG_CONFIG=’remote_host=localhost idekey=phpstorm’
https://freshnotes.org/2016/12/ustanovka-i-nastrojka-xdebug-phpstorm-v-ubuntu-16-04-elementary-os-0-4-loki-mint-18/